remove unncessary command options, re-add default setting

This commit is contained in:
Marty Oehme 2019-03-11 19:40:55 +01:00
parent c6487dba86
commit da527a2534

View file

@ -15,15 +15,12 @@ while getopts ":a:r:p:u:U:f:F:hq" o; do case "${o}" in
f) pkgfiles=${OPTARG} ;;
F) pkgfiles=${OPTARG} && exclusivepkgfiles=true ;;
t) targetdeployment=${OPTARG} ;;
u) targetuser=${OPTARG} ;;
U) targetuser=${OPTARG} && forceuser=true ;;
p) targetpassword=${OPTARG} ;;
q) quietmode=true;;
*) printf "Invalid option: -%s\\n" "$OPTARG" && exit ;;
esac done
# DEFAULTS:
[ -z "$dotfilesrepo" ] && dotfilesrepo="https://gitlab.com/marty-oehme/dotfiles.git"
[ -z "$pkgfiles" ] && pkgfiles=""
[ -z "$aurhelper" ] && aurhelper="yay"
### FUNCTIONS ###