Closed a-schaefers closed 4 years ago
run hooks as it is currently,
run_hooks() { [ -f "$1" ] && for file in "$@"; do [ -f "$file" ] && . "$file" done }
Does not pass arguments to the hooks that it sources. This breaks sinit and is also confusing.
originally discovered by @cemkeylan (Thanks)
run hooks as it is currently,
Does not pass arguments to the hooks that it sources. This breaks sinit and is also confusing.
originally discovered by @cemkeylan (Thanks)