Update 'kfg'
This commit is contained in:
@@ -1,11 +1,22 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
NAME="kfg"
|
||||||
|
VERSION="0.1"
|
||||||
|
|
||||||
function show_help {
|
function show_help {
|
||||||
echo "Usage: install.sh [cmd] [ -y | --yes ] [ -h | --help ] [ -m | --arch ARCH-STRING ] [ -d | --debug ]
|
echo -n "Usage: $NAME [cmd] [ -y | --yes ] [ -h | --help ] [ -m | --arch ARCH-STRING ] [ -d | --debug ]"
|
||||||
[ -d | --delta DELTA ] filename(s)"
|
echo -n "Available commands:
|
||||||
echo "Available commands:
|
\tupdate\t\t update the tool
|
||||||
update
|
\tinstall\t\t install configs :)
|
||||||
install"
|
"
|
||||||
|
|
||||||
|
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
|
exit 2
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -272,7 +283,7 @@ function set_shell {
|
|||||||
|
|
||||||
function update {
|
function update {
|
||||||
cd "$(dirname "$0")"
|
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
|
exit 0
|
||||||
}
|
}
|
||||||
|
|
||||||
Reference in New Issue
Block a user