Commit bd73faab authored by KatolaZ's avatar KatolaZ

Solved a silly bug in link, probably introduced by an earlier commit...

parent e2fc343e
......@@ -120,7 +120,7 @@ handle_link(){
NUM_ORIG=$(git remote | grep "^origin" | sort | head -1 | grep -c "^origin$")
if [ "$NUM_ORIG" = 1 ]; then
## rename the current origin
LAST_ORIG_NUM=$(git remote | grep "^origin" | sort | tail -1 | sed -r -e 's/[-a-zA-Z]//')
LAST_ORIG_NUM=$(git remote | grep "^origin" | sort | tail -1 | sed -r -e 's/[-a-zA-Z]//g')
if [ -z "${LAST_ORIG_NUM}" ]; then
NEW_ORIG_NUM=1
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