mirror of
https://github.com/tomasriveral/Nix-Git-Cherry-Picker.git
synced 2026-08-12 02:38:38 +02:00
fix: flag regex
This commit is contained in:
@@ -64,7 +64,7 @@ if [[ "$1" == "pick" ]]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
for commit in "${@:2}"; do
|
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
|
if git -C "$nixConfigPath" cherry-pick "$commit"; then
|
||||||
echo "Applied $commit successfully"
|
echo "Applied $commit successfully"
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user