make-brew-installer.sh

-ajout d’options (courtes ou longues) pour choisir quoi installer:
   -b (brew) -c (casks) -m (mas)
This commit is contained in:
2018-08-03 13:40:08 +02:00
parent dc283cd7a3
commit 56c1ed28cb
2 changed files with 60 additions and 54 deletions

View File

@@ -1,31 +0,0 @@
#!/usr/bin/env bash
help=0
latest=0
verbose=0
status=0
usage() {
cat <<-EOF
${0##*/} [options]
options:
-h show help dialog
-l reinstall packages with version "latest"
-v verbose output
EOF
exit "$status"
}
for opt
do case "$opt" in
'-h') usage ;;
'-l') latest=1 ;;
'-v') verbose=1 ;;
*) status=1 usage ;;
esac
done
echo "toto"
exit "$status"