Wrap the loose commands at the end of dots in a function too, to help guarantee harmless crashing if the script's download is interrupted

This commit is contained in:
Danielle McLean 2020-06-18 13:34:41 +10:00
parent 316108268f
commit d01591a0d4
Signed by: 00dani
GPG key ID: 9DDE1EDE01E3A605

View file

@ -128,6 +128,7 @@
done
}
'main'() {
: ${DOTFILES:=~/dotfiles} ${STOW:=stow} ${GITHUB_USER:=00dani}
comm=$1
@ -147,3 +148,6 @@ case $comm in
pull) pull ${argv[2,-1]} ;;
st|status) status ${argv[2,-1]} ;;
esac
}
'main'