mirror of
https://github.com/p8952/bocker.git
synced 2025-11-09 00:13:59 +01:00
Move exit call out of HELP()
This saves another line as it's only needed in one place.
This commit is contained in:
parent
3bf68db6a4
commit
d229161326
3
bocker
3
bocker
@ -72,9 +72,8 @@ echo "Created: $2"
|
||||
}
|
||||
function HELP() {
|
||||
sed -n "s/\\\\n/\n\t/g;s/BOCKER/${1/\//\\\/}/g;s/$/\n/;s/^.*#HELP\\s//p;" < $1
|
||||
exit 0
|
||||
}
|
||||
[[ -z "${1-}" ]] && HELP $0
|
||||
[[ -z "${1-}" ]] && HELP $0 && exit 0
|
||||
case $1 in
|
||||
init) INIT "$2" ;; #HELP Create an image:\nBOCKER init <image_directory>
|
||||
images) IMAGES ;; #HELP List images:\nBOCKER images
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user