Add -s flag to getter to call stow afterwords

This commit is contained in:
Adam Goldsmith 2015-09-06 10:30:05 -04:00
parent e150d29cdc
commit e9ad30af93
1 changed files with 12 additions and 0 deletions

View File

@ -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