[pve-devel] [PATCH pve-manager 7/8] debian/postinst: fix shellcheck warning

Max Carrara m.carrara at proxmox.com
Tue Jan 30 19:40:40 CET 2024


SC3043 (warning): In POSIX sh, 'local' is undefined.

Signed-off-by: Max Carrara <m.carrara at proxmox.com>
---
 debian/postinst | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/debian/postinst b/debian/postinst
index 6138ef6d..00d5f2cc 100755
--- a/debian/postinst
+++ b/debian/postinst
@@ -9,7 +9,7 @@ set -e
 # installed and configured.
 
 set_lvm_conf() {
-    local FORCE="$1"
+    FORCE="$1"
     LVM_CONF_MARKER="# added by pve-manager to avoid scanning"
 
     # keep user changes afterwards provided marker is still there..
-- 
2.39.2





More information about the pve-devel mailing list