Death to develop branch at rentdynamics
This commit is contained in:
parent
c77513993d
commit
e47bdb355f
@ -44,7 +44,7 @@ function rntbranchcleanup() {
|
|||||||
rnt $dir >/dev/null 2>/dev/null;
|
rnt $dir >/dev/null 2>/dev/null;
|
||||||
if [ -d .git ]; then
|
if [ -d .git ]; then
|
||||||
printf " - %s\e[1;34m %s\e[0m..." "clearing repository" "$dir";
|
printf " - %s\e[1;34m %s\e[0m..." "clearing repository" "$dir";
|
||||||
git branch -d $(git branch | sed -E "/develop|master|\*/d") >/dev/null 2>/dev/null;
|
git branch -d $(git branch | sed -E "/master|\*/d") >/dev/null 2>/dev/null;
|
||||||
printf "\e[1;32m%s\e[0m\n" " DONE";
|
printf "\e[1;32m%s\e[0m\n" " DONE";
|
||||||
else
|
else
|
||||||
printf " - \e[1;34m%s\e[1;31m %s\e[0m" "$dir" "is not a git repository";
|
printf " - \e[1;34m%s\e[1;31m %s\e[0m" "$dir" "is not a git repository";
|
||||||
|
Loading…
Reference in New Issue
Block a user