optarg fix

This commit is contained in:
Luke Smith 2019-05-18 19:35:31 -04:00
parent e2233e38fa
commit fdb2394bac
No known key found for this signature in database
GPG Key ID: 4C50B54A911F6252

View File

@ -5,7 +5,7 @@
### OPTIONS AND VARIABLES ###
while getopts ":r:p:h" o; do case "${o}" in
while getopts ":r:p:b:h" o; do case "${o}" in
h) printf "Optional arguments for custom use:\\n -r: Dotfiles repository (local file or url)\\n -b: Dotfiles branch (master is assumed otherwise)\\n -p: Dependencies and programs csv (local file or url)\\n -h: Show this message\\n" && exit ;;
r) dotfilesrepo=${OPTARG} && git ls-remote "$dotfilesrepo" || exit ;;
b) repobranch=${OPTARG} ;;