lack of arguments doesnt end program

This commit is contained in:
James Tomasino 2018-01-20 21:41:35 -05:00
parent 68ac3f0053
commit 00063c66cb
1 changed files with 5 additions and 10 deletions

15
burrow
View File

@ -97,11 +97,6 @@ function parse_input() {
esac
done
if [[ $# -lt 1 ]]
then
exit 0
fi
for arg in "$@"
do
argc=${arg,,}
@ -306,28 +301,28 @@ function update_git() {
function main() {
parse_input "$@"
if [[ ${arg_shortlist} ]]
if [[ $arg_shortlist -gt 0 ]]
then
echo "phlog recipe create-config update-git"
exit 0
fi
if [[ ${flag_version} -gt 0 ]]
if [[ $flag_version -gt 0 ]]
then
echo "$version"
fi
if [[ ${flag_help} -gt 0 ]]
if [[ $flag_help -gt 0 ]]
then
show_help
fi
if [[ ${flag_debug} -gt 0 ]]
if [[ $flag_debug -gt 0 ]]
then
set -x
fi
if [[ ${arg_create_config} -gt 0 ]]
if [[ $arg_create_config -gt 0 ]]
then
create_config
fi