Update 'install.sh'
This commit is contained in:
22
install.sh
22
install.sh
@@ -43,6 +43,20 @@ do
|
||||
esac
|
||||
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: $@"
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
# -----------------
|
||||
@@ -377,3 +398,4 @@ install_binary_github "oh-my-posh" "JanDeDobbeleer/oh-my-posh" "posh-linux-ARCH"
|
||||
cleanup
|
||||
|
||||
exit 0
|
||||
}
|
||||
Reference in New Issue
Block a user