Skip to content

Commit

Permalink
lock: more descriptive variable name (shot_custom)
Browse files Browse the repository at this point in the history
+default value (false)
  • Loading branch information
AladW authored May 18, 2017
1 parent 789ac74 commit f2b2a01
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lock
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ font="$(convert -list font | awk "{ a[NR] = \$2 } /family: $(fc-match sans -f "%
image="$(mktemp).png"
shot=(import -window root)
desktop=""
shot_custom=false

options="Options:
-h, --help This help menu.
Expand Down Expand Up @@ -71,12 +72,12 @@ while true ; do
-l|--listfonts)
convert -list font | awk -F: '/Font: / { print $2 }' | sort -du | command -- ${PAGER:-less}
exit 0 ;;
--) shift; set=true; break ;;
--) shift; shot_custom=true; break ;;
*) echo "error" ; exit 1 ;;
esac
done

if "$set" && [[ $# -gt 0 ]]; then
if "$shot_custom" && [[ $# -gt 0 ]]; then
shot=("$@");
fi

Expand Down

0 comments on commit f2b2a01

Please sign in to comment.