Merge pull request #12 from matteodelabre/fix-destination-flag
Fix incorrect handling of flags
This commit is contained in:
commit
d1fa399c86
@ -5,9 +5,8 @@ ssh_host="root@10.11.99.1" # remarkable connected trough USB
|
|||||||
landscape=true # rotate 90 degrees to the right
|
landscape=true # rotate 90 degrees to the right
|
||||||
|
|
||||||
# loop through arguments and process them
|
# loop through arguments and process them
|
||||||
for arg in "$@"
|
while [ $# -gt 0 ]; do
|
||||||
do
|
case "$1" in
|
||||||
case $arg in
|
|
||||||
-p|--portrait)
|
-p|--portrait)
|
||||||
landscape=false
|
landscape=false
|
||||||
shift
|
shift
|
||||||
|
Loading…
x
Reference in New Issue
Block a user