Compare commits

..

No commits in common. "d014cc0dbb013f2c1cb7c4b307b5860350a554a1" and "7eed5dcbbd0cdcb9cb337adb865a4273216cc044" have entirely different histories.

View file

@ -32,10 +32,7 @@ default_password=""
default_user=""
default_server=""
usage () {
cat << EOF
MacOS FusionInventory Installer -- Install
usage () { cat <<EOF MacOS FusionInventory Installer -- Install
FusionInventory agent on MacOSX
arg: -s|--server <server>
@ -144,13 +141,13 @@ clean () {
}
# Check user
[[ "$(whoami)" == "root" ]] || fatal 1 "You must be root (or use sudo) tu run this script."
trap clean 0
[[ "$FI_INSTALLER_URL" == "" ]] && fatal 5 "can't grab F.I. installer URL, check your connexion\n" "err"
process_args "$@"
# Check user
[[ "$(whoami)" == "root" ]] || fatal 1 "You must be root (or use sudo) to run this script."
debug "Process variables"
server="${server:=$default_server}"
user="${user:=$default_user}"