Skip to content

Commit 9311abb

Browse files
author
3np
committed
chore: use -n for empty-var-checks in shell
1 parent ba0c61b commit 9311abb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vm-systemd/network-proxy-setup.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
# Setup gateway for all the VMs this NetVM is servicing...
88
network=$(qubesdb-read /qubes-netvm-network 2>/dev/null)
9-
if [ "x$network" != "x" ]; then
9+
if [ -n "${network}" ]; then
1010

1111
if [ -e /proc/sys/kernel ] && ! [ -e /proc/sys/kernel/modules_disabled ]; then
1212
readonly modprobe_fail_cmd='true'

0 commit comments

Comments
 (0)