diff --git a/getter.sh b/getter.sh index 543c849..ed34ae8 100755 --- a/getter.sh +++ b/getter.sh @@ -1,5 +1,12 @@ #!/bin/bash +stow=0 +if [ "$1" = "-s" ] +then + stow=1 + shift +fi + targets="$@" for t in $targets do @@ -15,3 +22,8 @@ do cd .. fi done + +if [ "$stow" -eq 1 ] +then + ./stower.sh "$@" +fi