Positional reference after optind shifting

This commit is contained in:
Horea Christian 2023-05-23 19:13:17 -04:00
parent 92ea0b9d7d
commit 4ba02d1497

View file

@ -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