Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit f4eb21e

Browse files
committed
error handling
1 parent beb10be commit f4eb21e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

‎s2c.sh‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@ EOS
1616
exit 1
1717
fi
1818

19+
if [ ! -f "$sketch" ]
20+
then
21+
echo "$sketch is not found"
22+
exit 1
23+
fi
1924

2025
if [[ $(file -b "$sketch") != 'PNG '* ]]
2126
then

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /