Skip to content

Commit

Permalink
Set default configuration on default directory
Browse files Browse the repository at this point in the history
  • Loading branch information
camlafit committed May 23, 2023
1 parent 77d4606 commit 86bad6d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
5 changes: 5 additions & 0 deletions debian/default
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Set default option values.
grayscale=""
ofile="-"
res="72"

11 changes: 8 additions & 3 deletions shrinkpdf.sh
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,14 @@ usage ()
}

# Set default option values.
grayscale=""
ofile="-"
res="72"
# shellcheck source=debian/default
if [ -f "/etc/default/shrinkpdf" ];then
. /etc/default/shrinkpdf
else
grayscale=""
ofile="-"
res="72"
fi

# Parse command line options.
while getopts ':hgo:r:' flag; do
Expand Down

0 comments on commit 86bad6d

Please sign in to comment.