From 5c385ece9798556c28cd8a5697597cfe0ca8a0cd Mon Sep 17 00:00:00 2001 From: David Date: Wed, 13 Jan 2021 00:47:39 +0100 Subject: [PATCH] fix: fix flags counting in `dot` ignore git flags (--*) correct merging error message --- .local/bin/dot | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.local/bin/dot b/.local/bin/dot index 21a3eb3..60f60c7 100755 --- a/.local/bin/dot +++ b/.local/bin/dot @@ -13,6 +13,7 @@ flags="false" for arg in $@ do case $arg in + --*) ;; -*) [ "$flags" = "true" ] && flags="error" && break || flags="true" ;; esac done @@ -42,7 +43,7 @@ case $1 in [ "$1" = "-d" ] && shift && cmd="$git diff $@" && break if [ "$1" = "-m" ] ; then shift - [ "$1" = "" ] && echo "Please provide a branche to merge from" && exit 1 + [ "$1" = "" ] && echo "Please provide a branche to merge into" && exit 1 if [ "$1" != "-a" ] ; then while [ "$1" != "" ] ; do $git checkout $1 && $git merge dev