From: afresh1 Date: Fri, 7 Jan 2022 02:25:40 +0000 (+0000) Subject: whitespace X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=05388c333a6143e5da4ca6a8c29d8ba02d93ff98;p=openbsd whitespace --- diff --git a/usr.sbin/fw_update/fw_update.sh b/usr.sbin/fw_update/fw_update.sh index 40a10107b30..17e27ea75ef 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.26 2022/01/06 20:15:54 deraadt Exp $ +# $OpenBSD: fw_update.sh,v 1.27 2022/01/07 02:25:40 afresh1 Exp $ # # Copyright (c) 2021 Andrew Hewus Fresh # @@ -278,22 +278,22 @@ ALL=false OPT_F= while getopts :adFnp:v name do - case "$name" in - a) ALL=true ;; - d) DELETE=true ;; - F) OPT_F=true ;; - n) DRYRUN=true ;; - p) LOCALSRC="$OPTARG" ;; - v) VERBOSE=true ;; - :) - echo "${0##*/}: option requires an argument -- -$OPTARG" >&2 - usage 2 - ;; - ?) - echo "${0##*/}: unknown option -- -$OPTARG" >&2 - usage 2 - ;; - esac + case "$name" in + a) ALL=true ;; + d) DELETE=true ;; + F) OPT_F=true ;; + n) DRYRUN=true ;; + p) LOCALSRC="$OPTARG" ;; + v) VERBOSE=true ;; + :) + echo "${0##*/}: option requires an argument -- -$OPTARG" >&2 + usage 2 + ;; + ?) + echo "${0##*/}: unknown option -- -$OPTARG" >&2 + usage 2 + ;; + esac done shift $((OPTIND - 1)) @@ -369,8 +369,8 @@ if "$DELETE"; then fi if [ ! "$LOCALSRC" ]; then - LOCALSRC="$( tmpdir "${DESTDIR}/tmp/${0##*/}" )" - REMOVE_LOCALSRC=true + LOCALSRC="$( tmpdir "${DESTDIR}/tmp/${0##*/}" )" + REMOVE_LOCALSRC=true fi CFILE="$LOCALSRC/$CFILE"