From: afresh1 Date: Mon, 12 Dec 2022 02:30:51 +0000 (+0000) Subject: Remove extra : in parameter substitution X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=b20ee742f38362d1f207b44c217df8feb552f402;p=openbsd Remove extra : in parameter substitution From Rob Whitlock --- diff --git a/usr.sbin/fw_update/fw_update.sh b/usr.sbin/fw_update/fw_update.sh index 4b77d4c7bd7..53efe816023 100644 --- a/usr.sbin/fw_update/fw_update.sh +++ b/usr.sbin/fw_update/fw_update.sh @@ -1,5 +1,5 @@ #!/bin/ksh -# $OpenBSD: fw_update.sh,v 1.43 2022/08/05 18:01:40 afresh1 Exp $ +# $OpenBSD: fw_update.sh,v 1.44 2022/12/12 02:30:51 afresh1 Exp $ # # Copyright (c) 2021 Andrew Hewus Fresh # @@ -405,7 +405,7 @@ if [ "$LOCALSRC" ]; then FWURL="${LOCALSRC}" LOCALSRC= else - LOCALSRC="${LOCALSRC:#file:}" + LOCALSRC="${LOCALSRC#file:}" ! [ -d "$LOCALSRC" ] && echo "The path must be a URL or an existing directory" >&2 && exit 1