Skip to content

Commit

Permalink
Fix parsing of optional argument to --custom.
Browse files Browse the repository at this point in the history
  • Loading branch information
Van-Ziegelstein committed Oct 5, 2019
1 parent 464916d commit 07e4b39
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion ballup
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,12 @@ if [ $# -ne 0 ]; then

--full) choice="full";;

--custom) choice="custom"; shift; exclude_selection=$(realpath -qe "$1");;
--custom) choice="custom";
if [ -n "$2" ] && sed '/^-\+.*/{q2}' <<< "$2" > /dev/null; then
shift
exclude_selection=$(realpath -qe "$1")
fi
;;

--path) shift; destination=$(realpath -qm "$1");;

Expand Down

0 comments on commit 07e4b39

Please sign in to comment.