From 70e67c2f232af4d02f070ff6e6de7f0938b810c5 Mon Sep 17 00:00:00 2001
From: Adar Nimrod <nimrod@shore.co.il>
Date: Wed, 18 Aug 2021 21:53:49 +0300
Subject: [PATCH] fixup! Dry-run for update-wb.

---
 Documents/bin/update-wb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Documents/bin/update-wb b/Documents/bin/update-wb
index 9f64b0f..a2bc386 100755
--- a/Documents/bin/update-wb
+++ b/Documents/bin/update-wb
@@ -23,7 +23,7 @@ update() {
 if [ "$(hostname)" = 'toolbox' ]
 then
     /usr/libexec/flatpak-xdg-utils/flatpak-spawn --host "$0" "$@"
-elif [ "$1" = "-d" ] || [ "$1" = "--dry-run" ] || [ -n "${DRY_RUN:-}" ]
+elif [ "${1:-}" = "-d" ] || [ "${1:-}" = "--dry-run" ] || [ -n "${DRY_RUN:-}" ]
 then
     podman image pull "$IMAGE" > /dev/null
 elif ! (is_latest)
-- 
GitLab