From e5f86cb1b4e5ad9f03827f850aa8f22ec0b686c4 Mon Sep 17 00:00:00 2001 From: Scott B <28817345+foundObjects@users.noreply.github.com> Date: Fri, 12 Jun 2020 12:22:54 +0000 Subject: [PATCH] WIP: shellcheck cleanup --- install.sh | 1 + pve-nag-buster.sh | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index d669c81..868fce7 100755 --- a/install.sh +++ b/install.sh @@ -1,4 +1,5 @@ #!/bin/sh +# shellcheck disable=SC2064 case "$(readlink /proc/$$/exe)" in */bash) set -euo pipefail ;; *) set -eu ;; esac # pve-nag-buster (v03) https://github.com/foundObjects/pve-nag-buster diff --git a/pve-nag-buster.sh b/pve-nag-buster.sh index 5dc290d..87d8b3d 100755 --- a/pve-nag-buster.sh +++ b/pve-nag-buster.sh @@ -21,7 +21,7 @@ NAGTOKEN="data.status !== 'Active'" NAGFILE="/usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js" -SCRIPT="$(basename $0)" +SCRIPT="$(basename "$0")" # disable license nag: https://johnscs.com/remove-proxmox51-subscription-notice/