From 7ab5fcff76dc422aa6640363c422ca718c29bbfc Mon Sep 17 00:00:00 2001 From: creme Date: Fri, 6 Dec 2024 16:04:48 +0100 Subject: [PATCH] fix POSIX sh warning --- .../base/ddmesh/usr/local/bin/freifunk-manuell_update.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/salt/freifunk/base/ddmesh/usr/local/bin/freifunk-manuell_update.sh b/salt/freifunk/base/ddmesh/usr/local/bin/freifunk-manuell_update.sh index fd46b98c..c95bd858 100755 --- a/salt/freifunk/base/ddmesh/usr/local/bin/freifunk-manuell_update.sh +++ b/salt/freifunk/base/ddmesh/usr/local/bin/freifunk-manuell_update.sh @@ -19,7 +19,7 @@ CUSTOM_INSTALL_DIR="$(uci -qX get ffdd.sys.install_dir)" [ -n "$CUSTOM_INSTALL_DIR" ] && [ "$CUSTOM_INSTALL_DIR" != "$INSTALL_DIR" ] && INSTALL_DIR="$CUSTOM_INSTALL_DIR" -[ "$(pwd)" == "$INSTALL_DIR" ] && cd /srv +[ "$(pwd)" = "$INSTALL_DIR" ] && cd /srv || exit 1 [ -d "$INSTALL_DIR" ] && rm -rf "$INSTALL_DIR" git clone "$REPO_URL" "$INSTALL_DIR"