Skip to content

Commit b68c62c

Browse files
committed
vim: polishing bash skeleton file
1 parent 1f01b07 commit b68c62c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.vim/skeleton/skeleton.sh

+4-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
show_help()
44
{
5-
echo -e "Usage: $(basename $0) <command> [command-options]\n"
5+
echo -e "Usage: $(basename "$0") <command> [command-options]\n"
66
echo """Commands:
77
play play stream (options: --cache)
88
dump download stream (options: --name)
@@ -21,8 +21,11 @@ fi
2121

2222
# debug mode
2323
if [[ $1 = "-d" ]]; then
24+
# shellcheck disable=SC2209
2425
DEBUG=echo
2526
shift
27+
else
28+
unset DEBUG
2629
fi
2730

2831
case $1 in

0 commit comments

Comments
 (0)