Skip to content

Commit 5095a54

Browse files
committed
https://github.com/ingydotnet/git-hub/commit/b9f723cabbbc9fd0444d4cf8653750fd4db1a1fb#commitcomment-15235548
1 parent b1b156b commit 5095a54

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/bashplus/lib/bash+.bash

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ bash+:die() {
7575
[[ $msg =~ $trailing_newline_re ]] && exit 1
7676

7777
local c=($(caller ${DIE_STACK_LEVEL:-${2:-0}}))
78-
[[ ${#c[@]} -eq 2 ]] &&
78+
(( ${#c[@]} == 2 )) &&
7979
msg=" at line %d of %s" ||
8080
msg=" at line %d in %s of %s"
8181
printf "$msg\n" ${c[@]} >&2

0 commit comments

Comments
 (0)