Skip to content

Commit a457651

Browse files
committed
Rename fail_trap > exit_trap
1 parent 6b893ce commit a457651

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

install-binary.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,8 @@ installFile() {
115115
cp "$HELM_TMP_BIN" "$HELM_PLUGIN_DIR/bin"
116116
}
117117

118-
# fail_trap is executed if an error occurs.
119-
fail_trap() {
118+
# exit_trap is executed if on exit (error or not).
119+
exit_trap() {
120120
result=$?
121121
rmTempDir
122122
if [ "$result" != "0" ]; then
@@ -137,7 +137,7 @@ testVersion() {
137137
# Execution
138138

139139
#Stop execution on any error
140-
trap "fail_trap" EXIT
140+
trap "exit_trap" EXIT
141141
set -e
142142
initArch
143143
initOS

0 commit comments

Comments
 (0)