diff --git a/install.sh b/install.sh index 0f72197..6489868 100644 --- a/install.sh +++ b/install.sh @@ -4,6 +4,8 @@ function show_help { echo "This is the help" } +ARCH=$(/usr/bin/dpkg --print-architecture) + while getopts "h?vyi:acrbm:" opt; do case "$opt" in h|\?) show_help; exit 0 ;; @@ -30,8 +32,6 @@ CONFIG_PATH="$HOME_PATH/.config" BINARY_PATH="/usr/bin" RC_FILE=".zshrc" -ARCH=$(/usr/bin/dpkg --print-architecture) - function log { color $1 "[$2]" echo "$3"