Skip to content

Commit

Permalink
sw: Also handle local binary
Browse files Browse the repository at this point in the history
Signed-off-by: Saalim Quadri <[email protected]>
  • Loading branch information
danascape committed Jul 31, 2023
1 parent 859a97c commit 3eea0e6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sw
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ SWORKFLOW=${SWORKFLOW:-'sw'}
# SW source directory
if [[ -f '/usr/bin/sw' ]]; then
SW_SRC_DIR="/usr/share/sw"
elif [[ -f $HOME/sworkflow/sw ]]; then
SW_SRC_DIR="$HOME/sworkflow"
else
# SW_SRC_DIR="${SW_SRC_DIR:-"$HOME/.local/sw"}/${SWORKFLOW}"
SW_SRC_DIR="$HOME/.local/sw"
Expand Down

0 comments on commit 3eea0e6

Please sign in to comment.