Skip to content

Commit

Permalink
Printing shell script name correctly.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 706424394
  • Loading branch information
agutkin committed Dec 16, 2024
1 parent bc83319 commit 9e43e80
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
6 changes: 3 additions & 3 deletions protoscribe/glyphs/helpers/raster_to_vector.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,15 @@ while getopts 'i:o:' OPTION ; do
o)
OUTPUT_FILE="$OPTARG"
;;
?)
echo "Usage: $(basename \$0) -i INPUT -o OUTPUT" >&2
*)
echo "Usage: $(basename $0) -i <INPUT> -o <OUTPUT>" >&2
exit 1
;;
esac
done

if [ ! -f "${INPUT_FILE}" ] ; then
echo "Invalid input file!"
echo "Input file does not exist!"
exit 1
fi
if [ -z "${OUTPUT_FILE}" ] ; then
Expand Down
5 changes: 3 additions & 2 deletions protoscribe/glyphs/helpers/vector_to_raster.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
WIDTH=256px
HEIGHT=256px
BACKGROUND=

while getopts 'i:o:h:w:b' OPTION ; do
case "$OPTION" in
i)
Expand All @@ -40,8 +41,8 @@ while getopts 'i:o:h:w:b' OPTION ; do
b)
BACKGROUND="-b white"
;;
?)
echo "Usage: $(basename \$0) -i INPUT -o OUTPUT" >&2
*)
echo "Usage: $(basename $0) -i <INPUT> -o <OUTPUT>" >&2
exit 1
;;
esac
Expand Down

0 comments on commit 9e43e80

Please sign in to comment.