Browse Source

Replace hardcoded script name with ${0##*/}

OK tb@ halex@
OPENBSD_6_2
rpe 7 years ago
parent
commit
9b0956829c
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/etc/netstart

+ 2
- 2
src/etc/netstart View File

@ -1,6 +1,6 @@
#!/bin/sh -
#
# $OpenBSD: netstart,v 1.181 2017/05/01 16:23:42 rpe Exp $
# $OpenBSD: netstart,v 1.182 2017/05/07 07:55:17 rpe Exp $
# Turn off Strict Bourne shell mode.
set +o sh
@ -90,7 +90,7 @@ ifstart() {
[[ $_if != +([[:alpha:]])+([[:digit:]]) ]] && return
if [[ ! -f $_file ]]; then
echo "netstart: $_file: No such file or directory"
echo "${0##*/}: $_file: No such file or directory"
return
fi


Loading…
Cancel
Save