From 4ba02d149767fa9d8dd29136093b5a17ee3eac45 Mon Sep 17 00:00:00 2001 From: Horea Christian Date: Tue, 23 May 2023 19:13:17 -0400 Subject: [PATCH] Positional reference after optind shifting --- cpstage4.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cpstage4.sh b/cpstage4.sh index 4993052..ffea9c4 100755 --- a/cpstage4.sh +++ b/cpstage4.sh @@ -67,8 +67,8 @@ done # shifts pointer to read mandatory output file specification shift $((OPTIND - 1)) -SOURCE=${@:$OPTIND:1} -DESTINATION=${@:$OPTIND+1:1} +SOURCE=${1} +DESTINATION=${2} if [ -z "$SOURCE" ] then