Update 'kfg'

This commit is contained in:
2023-05-03 13:02:18 +02:00
parent b21bcca2b6
commit 09987ae942

View File

@@ -1,11 +1,22 @@
#!/bin/bash
NAME="kfg"
VERSION="0.1"
function show_help {
echo "Usage: install.sh [cmd] [ -y | --yes ] [ -h | --help ] [ -m | --arch ARCH-STRING ] [ -d | --debug ]
[ -d | --delta DELTA ] filename(s)"
echo "Available commands:
update
install"
echo -n "Usage: $NAME [cmd] [ -y | --yes ] [ -h | --help ] [ -m | --arch ARCH-STRING ] [ -d | --debug ]"
echo -n "Available commands:
\tupdate\t\t update the tool
\tinstall\t\t install configs :)
"
echo -n "Available options:
\t-h | --help\t\t Show this help
\t-y | --yes\t\t Skip confirmation questions
\t-m | --arch STRING\t Set the architecture string to be used when downloading files from repositories. Most common are "amd64", "arm64", "armhf", etc...
\t-d | --debug\t\t Print debug output
"
exit 2
}
@@ -272,7 +283,7 @@ function set_shell {
function update {
cd "$(dirname "$0")"
wget -O install.sh https://git.cbeck.tech/kamu/dotfiles/raw/branch/main/install.sh
wget -O kfg https://git.cbeck.tech/kamu/dotfiles/raw/branch/main/kfg
exit 0
}