chore: git remote switch script quits on error
This commit is contained in:
1 file changed
+2
@@ -1,5 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
origin=$(git remote show origin)
|
origin=$(git remote show origin)
|
||||||
if [[ $(echo "$origin" | awk -e '/https/') != "" ]]; then
|
if [[ $(echo "$origin" | awk -e '/https/') != "" ]]; then
|
||||||
remote=$(git remote show origin | awk -e '/Fetch/' | cut -d ":" -f 3)
|
remote=$(git remote show origin | awk -e '/Fetch/' | cut -d ":" -f 3)
|
||||||
|
|||||||
Reference in new issue
Block a user