Skip to content

Commit 1592ea5

Browse files
author
Cerem Cem ASLAN
committed
fixes #3
1 parent cbe57f9 commit 1592ea5

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

create-gist.sh

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ print_usage(){
1111
1212
usage:
1313
14-
$(basename $0) /path/to/file [Github user name]
14+
$(basename $0) /path/to/file Github_user_name
1515
1616
or
1717
18-
lsusb | $(basename $0) [Github user name]
18+
lsusb | $(basename $0) Github_user_name
1919
2020
USAGE
2121
}
@@ -35,6 +35,11 @@ else
3535
fi
3636
fi
3737

38+
if [[ -z $GITHUB_USERNAME ]]; then
39+
print_usage
40+
exit 2
41+
fi
42+
3843

3944
# 1. Somehow sanitize the file content
4045
# Remove \r (from Windows end-of-lines),

0 commit comments

Comments
 (0)