File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ core.trap_add() {
20
20
local function=" $1 "
21
21
22
22
core.private.util.validate_args " $function " $#
23
+ local signal_spec=
23
24
for signal_spec in " ${@: 2} " ; do
24
25
core.private.util.validate_signal " $function " " $signal_spec "
25
26
@@ -62,6 +63,7 @@ core.trap_remove() {
62
63
local function=" $1 "
63
64
64
65
core.private.util.validate_args " $function " $#
66
+ local signal_spec=
65
67
for signal_spec in " ${@: 2} " ; do
66
68
core.private.util.validate_signal " $function " " $signal_spec "
67
69
Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ core.private.util.validate_signal() {
60
60
if [[ " $signal_spec " =~ $regex ]]; then
61
61
core.panic ' Passing numbers for the signal specs is prohibited'
62
62
fi ; unset -v regex
63
- signal_spec=" ${signal_spec# SIG} "
63
+ signal_spec=${signal_spec# SIG}
64
64
if ! declare -f " $function " & > /dev/null; then
65
65
core.panic " Function '$function ' is not defined"
66
66
fi
You can’t perform that action at this time.
0 commit comments