Sacar bashism de run-script
This commit is contained in:
parent
b394eb8458
commit
982164ad89
@ -29,7 +29,7 @@ event=${0##*/}; event=${event%-*}
|
||||
state=${0##*/}; state=${state#*-}
|
||||
|
||||
# evitar que el script falle cuando no hay ningun script
|
||||
type shopt &>/dev/null && shopt -s nullglob
|
||||
type shopt >/dev/null && shopt -s nullglob
|
||||
|
||||
for _script in scripts/${event}-*; do
|
||||
# si no hay nullglob va a llegar un archivo con * literal (ej. ash)
|
||||
|
Loading…
x
Reference in New Issue
Block a user