diff --git a/ngcp.sh b/ngcp.sh index c7a38c1..7fa6c5c 100755 --- a/ngcp.sh +++ b/ngcp.sh @@ -64,7 +64,7 @@ if [[ "$1" == "pick" ]]; then fi for commit in "${@:2}"; do - if ! [[ $commit =~ "--.*" ]]; then # if not a flag + if ! [[ $commit =~ --.* ]]; then # if not a flag if git -C "$nixConfigPath" cherry-pick "$commit"; then echo "Applied $commit successfully" else