summaryrefslogtreecommitdiff
path: root/tools/switch-remote
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@baturin.org>2024-03-20 17:50:51 +0000
committerDaniil Baturin <daniil@baturin.org>2024-03-20 17:50:51 +0000
commit5dcb6b771106df130b4884867dc28bd685b64e40 (patch)
tree205b0730456878a4ac88e724ecbaba02887b4941 /tools/switch-remote
parenta690a02bdcda236be79bd84acffb6c1d05a5d4ba (diff)
downloadvyos-build-5dcb6b771106df130b4884867dc28bd685b64e40.tar.gz
vyos-build-5dcb6b771106df130b4884867dc28bd685b64e40.zip
chore: T671: remove unused scripts and references to them
Diffstat (limited to 'tools/switch-remote')
-rwxr-xr-xtools/switch-remote35
1 files changed, 0 insertions, 35 deletions
diff --git a/tools/switch-remote b/tools/switch-remote
deleted file mode 100755
index 328b735c..00000000
--- a/tools/switch-remote
+++ /dev/null
@@ -1,35 +0,0 @@
-#!/bin/sh
-
-HTTPS_BASE_URL="https://github.com/vyos"
-SSH_BASE_URL="git@github.com:vyos"
-
-REMOTE=`git config remote.origin.url`
-
-# extract vyatta-foo.git
-BASENAME=`echo $REMOTE | sed -re 's!.*/(.*)$!\1!'`
-echo "Changing remote for $BASENAME"
-
-# Print usage if no arguments given
-if [ -z "$1" ]; then
- echo "Switches remote URL to SSH or HTTPS"
- echo "Use \"$0 ssh\" to switch to SSH"
- echo "Use \"$0 https\" to switch to HTTPS"
-fi
-
-case $1 in
- ssh)
- echo "New remote: $SSH_BASE_URL/$BASENAME"
- git config remote.origin.url $SSH_BASE_URL/$BASENAME
- ;;
- https)
- echo "New remote: $HTTPS_BASE_URL/$BASENAME"
- git config remote.origin.url $HTTPS_BASE_URL/$BASENAME
- ;;
- *)
- echo "Wrong option, use \"ssh\" or \"https\""
- ;;
-esac
-
-
-
-