From a07f9169afe6bc1a4413422a296270568a18f3d1 Mon Sep 17 00:00:00 2001 From: Spuriosity1i Date: Tue, 9 Mar 2021 22:07:31 +1100 Subject: [PATCH] Altered code for bash 3.2 compatibility, default bash on macOS --- test/test-pipe-in.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test-pipe-in.sh b/test/test-pipe-in.sh index 6071277..be7315f 100755 --- a/test/test-pipe-in.sh +++ b/test/test-pipe-in.sh @@ -7,7 +7,7 @@ set -e arr=( "$@" ) -input=${arr[-1]} +input=${arr[${#arr[@]}-1]} unset 'arr[${#arr[@]}-1]' ${arr[@]} < $input