Add ability to skip install

This commit is contained in:
Chocobozzz 2018-11-26 10:05:17 +01:00
parent 704da3b226
commit 4e0e4d31d9
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 4 additions and 0 deletions

View File

@ -3,6 +3,10 @@
gitlink="https://gitlab.cpy.re/florian/unixconf/repository/archive.zip?ref=master"
musthaves="zsh wget git vim ssh-agent urxvt unzip ruby ctags"
if [ ! -z ${1+x} ] && [ "$1" == "skip-install" ]; then
musthaves=""
fi
for musthave in $musthaves; do
which "$musthave" >/dev/null 2>&1
if [ "$?" -ne 0 ]; then