Remove redundant code in disp listing - qmenu - manage qubes os via dmenu (drkhsh fork)
HTML git clone git://git.drkhsh.at/qmenu.git
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
DIR commit c1022ccc56f08523313e26922d6a0cb64cffab34
DIR parent e965825013809b0c3cf16119ad42697b1c9e0e45
HTML Author: sine3o14nnae <3o14@pm.me>
Date: Thu, 5 Sep 2019 19:03:12 +0200
Remove redundant code in disp listing
Diffstat:
M qmenu-vm | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
DIR diff --git a/qmenu-vm b/qmenu-vm
@@ -1042,7 +1042,7 @@ fdom0_preferences() {
if `qvm-prefs --get $n template_for_dispvms |\
grep True &>/dev/null`; then
- LIST_OF_DISPTEMP+=("\n"$n)
+ LIST_OF_DISPTEMP+="\n"$n
fi
done
@@ -1193,9 +1193,9 @@ fdom0_preferences() {
if [ -z "$LIST_OF_DISPTEMP" ]
- then LIST_OF_DISPTEMP+=($n)
+ then LIST_OF_DISPTEMP+=$n
- else LIST_OF_DISPTEMP+=("\n"$n)
+ else LIST_OF_DISPTEMP+="\n"$n
fi
fi
done