Install script fixes

main
Yasen Pramatarov 2024-07-19 11:24:38 +03:00
parent cd83494654
commit 01a497a780
1 changed files with 3 additions and 6 deletions

View File

@ -2,8 +2,6 @@
VERSION="0.1" VERSION="0.1"
echo "Jilo-Web deployment script"
# main install function # main install function
function install() { function install() {
@ -73,15 +71,15 @@ function install() {
} }
help="Usage: help="Jilo-Web deployment script
Usage:
$0 [OPTION] $0 [OPTION]
Options: Options:
--install|-i - install Jilo-Web --install|-i - install Jilo-Web
--help|-h - show this help message --help|-h - show this help message
--version|-v - show version" --version|-v - show version"
version="Jilo-Web deployment script version="version $VERSION"
version $VERSION"
# called with an option # called with an option
@ -121,7 +119,6 @@ else
echo -e "$version" echo -e "$version"
exit 0 exit 0
;; ;;
# just in cae
*) *)
echo "Invalid option: $1" >&2 echo "Invalid option: $1" >&2
echo -e "$help" echo -e "$help"