=================================================================== RCS file: /cvs/openbsd/fw_update/fw_install.sh,v retrieving revision 1.117 retrieving revision 1.118 diff -u -r1.117 -r1.118 --- openbsd/fw_update/fw_install.sh 2021/12/23 21:52:21 1.117 +++ openbsd/fw_update/fw_install.sh 2021/12/24 00:46:02 1.118 @@ -1,5 +1,5 @@ #!/bin/ksh -# $OpenBSD: fw_install.sh,v 1.117 2021/12/23 21:52:21 afresh1 Exp $ +# $OpenBSD: fw_install.sh,v 1.118 2021/12/24 00:46:02 afresh1 Exp $ # # Copyright (c) 2021 Andrew Hewus Fresh # @@ -277,11 +277,9 @@ CFILE="$LOCALSRC/$CFILE" -if "$INSTALL" || "$DELETE"; then - if [ -x /usr/bin/id ] && [ "$(/usr/bin/id -u)" != 0 ]; then - echo "need root privileges" >&2 - exit 1 - fi +if [ -x /usr/bin/id ] && [ "$(/usr/bin/id -u)" != 0 ]; then + echo "need root privileges" >&2 + exit 1 fi set -A devices -- "$@"