From b20ee742f38362d1f207b44c217df8feb552f402 Mon Sep 17 00:00:00 2001 From: afresh1 Date: Mon, 12 Dec 2022 02:30:51 +0000 Subject: [PATCH] Remove extra : in parameter substitution From Rob Whitlock --- usr.sbin/fw_update/fw_update.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.20.1