Merge pull request #12 from matteodelabre/fix-destination-flag

Fix incorrect handling of flags
This commit is contained in:
Rien 2020-04-02 16:39:55 +02:00 committed by GitHub
commit d1fa399c86
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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