diff --git a/dist/dist-packages/linux/install.bash b/dist/dist-packages/linux/install.bash index 5d65ea0c5..5d6888533 100644 --- a/dist/dist-packages/linux/install.bash +++ b/dist/dist-packages/linux/install.bash @@ -11,7 +11,7 @@ checkSum() { break fi done - if [ -z "$SUMCMD" ]; then + if [ -z "${SUMCMD:-}" ]; then echo "ERROR: No checksum command found. Tried 'sha256sum', 'md5sum'." >&2 exit 1 fi @@ -26,7 +26,7 @@ installRedHat(){ break fi done - if [ -z "$PACKAGER" ]; then + if [ -z "${PACKAGER:-}" ]; then echo "ERROR: No package manager found. Tried 'dnf', 'yum'." >&2 exit 1 fi @@ -70,7 +70,7 @@ installDebian(){ break fi done - if [ -z "$GNUPGCMD" ]; then + if [ -z "${GNUPGCMD:-}" ]; then echo "ERROR: No GnuPG CLI found. Tried 'gpg', gpg2." >&2 exit 1 fi @@ -80,7 +80,7 @@ installDebian(){ break fi done - if [ -z "$GETTER" ]; then + if [ -z "${GETTER:-}" ]; then echo "ERROR: No http client found. Tried 'wget', 'curl'." >&2 exit 1 else @@ -97,7 +97,7 @@ installDebian(){ # always update the pubkey $GETTERCMD https://get.openziti.io/tun/package-repos.gpg \ | $GNUPGCMD --batch --yes --dearmor --output /usr/share/keyrings/openziti.gpg - chmod +r /usr/share/keyrings/openziti.gpg + chmod a+r /usr/share/keyrings/openziti.gpg local REPOSRC="deb [signed-by=/usr/share/keyrings/openziti.gpg] https://packages.openziti.org/${ZITIPAX_DEB:-zitipax-openziti-deb-stable} debian main"