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