chore: git remote switch script quits on error

This commit is contained in:
janishutz committed 2026-10-05 16:11:34 +02:00
1 parent a19b3c9172
commit 6f68856d35
1 file changed
+2
+2
View File
@@ -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)