diff --git a/install.sh b/kfg similarity index 94% rename from install.sh rename to kfg index 35953a3..928b59c 100644 --- a/install.sh +++ b/kfg @@ -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 }