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
# loop through arguments and process them
for arg in "$@"
do
case $arg in
while [ $# -gt 0 ]; do
case "$1" in
-p|--portrait)
landscape=false
shift