Update 'install.sh'

This commit is contained in:
2023-05-03 12:19:45 +02:00
parent 525d6c1a19
commit b406eb533f

View File

@@ -43,6 +43,20 @@ do
esac esac
done done
while :
do
case "$1" in
update) update ;;
install) install; shift ;;
# -- means the end of the arguments; drop this, and break out of the while loop
--) shift; break ;;
# If invalid options were passed, then getopt should have reported an error,
# which we checked as VALID_ARGUMENTS when getopt was called...
*) echo "Unexpected option: $1 - this should not happen."
usage ;;
esac
done
echo "Parameters remaining are: $@" echo "Parameters remaining are: $@"
@@ -312,6 +326,13 @@ function set_shell {
# -------------------------------------------------------------------------------------------------- # --------------------------------------------------------------------------------------------------
function update {
cd "$(dirname "$0")"
wget -O- install.sh https://git.cbeck.tech/kamu/dotfiles/raw/branch/main/install.sh
}
function install {
init init
# ----------------- # -----------------
@@ -377,3 +398,4 @@ install_binary_github "oh-my-posh" "JanDeDobbeleer/oh-my-posh" "posh-linux-ARCH"
cleanup cleanup
exit 0 exit 0
}