Skip to content

Commit

Permalink
Remove auxiliary variables
Browse files Browse the repository at this point in the history
Co-authored-by: RD WebDesign <github@rdwebdesign.com.br>
Signed-off-by: yubiuser <ckoenig@posteo.de>
  • Loading branch information
yubiuser and rdwebdesign authored Dec 1, 2022
1 parent afb4542 commit 924c19b
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions padd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1222,16 +1222,13 @@ EOM

setOffsets(){
# sets x/y-offsets (for shifting the Dashboard within the screen) if CLI arguments were passed
i=1;
j=$#;
while [ $i -le $j ]
while [ $# -gt 0 ]
do
case "$1" in
"-xoff" ) xOffset=$2; xOffOrig=$2;;
"-yoff" ) yOffset=$2; yOffOrig=$2;;
esac
i=$((i + 1));
shift 1;
shift 2;
done
}

Expand Down

0 comments on commit 924c19b

Please sign in to comment.