From 6a0c9f4d015be6dba476ce8e906f6cab2c9f041d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1s=20Rivera?= Date: Mon, 8 Jun 2026 13:18:41 +0200 Subject: [PATCH] fix: flag regex --- ngcp.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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