mirror of
https://github.com/erenfro/gen2stage4.git
synced 2024-11-13 18:58:57 -05:00
Positional reference after optind shifting
This commit is contained in:
parent
92ea0b9d7d
commit
4ba02d1497
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue