From 7431473858ab3dcb366fb133e73c0e66ecd89931 Mon Sep 17 00:00:00 2001 From: rmm Date: Sun, 9 Jul 2023 19:45:45 +0200 Subject: [PATCH] Minor format adjustments: - Added missing quotation marks to a warning msg - Adjusted sed program for better readability --- pve-mod-gui-temp.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pve-mod-gui-temp.sh b/pve-mod-gui-temp.sh index fcfcfc8..d50ebfc 100644 --- a/pve-mod-gui-temp.sh +++ b/pve-mod-gui-temp.sh @@ -177,7 +177,7 @@ function install_mod { sed -i '/my $dinfo = df('\''\/'\'', 1);/i\'$'\t''$res->{thermalstate} = `sensors -j`;\n' "$nodespm" msg "Added thermalstate to $nodespm." else - warn "Thermalstate already added to $nodespm." + warn "Thermalstate already added to \"$nodespm.\"" fi # Add new item to the items array in PVE.node.StatusView @@ -190,7 +190,8 @@ function install_mod { sed -i "/Ext.define('PVE\.node\.StatusView'/,/\},/ { s/\(bodyPadding:\) '[^']*'/\1 '20 15 20 15'/ s/height: [0-9]\+/minHeight: 360,\n\tflex: 1/ - s/\(tableAttrs:.*$\)/trAttrs: \{ valign: 'top' \},\n\t\1/}" "$pvemanagerlibjs" + s/\(tableAttrs:.*$\)/trAttrs: \{ valign: 'top' \},\n\t\1/ + }" "$pvemanagerlibjs" msg "Expanded space in \"$pvemanagerlibjs\"." sed -i "/^Ext.define('PVE.node.StatusView',/ {