Commit f4e663a6 by John Jarvis

use regex for filter

parent 4c64ed86
......@@ -62,7 +62,7 @@ fi
$noop cd "/var/tmp/$repo_basename"
if [[ -z $noop ]]; then
for branch in $(git branch -a | grep "$filter" | sort -r | tr -d ' '); do
for branch in $(git branch -a | sort -r | tr -d ' ' | grep -P "$filter" ); do
echo "origin/${branch}"
done
else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment