cleaning up some too specialized scripts that fred uses.
authorChris Koeritz <fred@gruntose.com>
Mon, 26 Jan 2015 04:15:15 +0000 (23:15 -0500)
committerChris Koeritz <fred@gruntose.com>
Mon, 26 Jan 2015 04:15:15 +0000 (23:15 -0500)
customizing/fred/scripts/pick_credentials.sh [new file with mode: 0644]
customizing/fred/scripts/sftp.sh [new file with mode: 0644]
customizing/fred/scripts/ssh.sh
scripts/security/pick_credentials.sh [deleted file]
scripts/security/sftp.sh [deleted file]

diff --git a/customizing/fred/scripts/pick_credentials.sh b/customizing/fred/scripts/pick_credentials.sh
new file mode 100644 (file)
index 0000000..8b4b55e
--- /dev/null
@@ -0,0 +1,17 @@
+#!/bin/bash
+
+# chooses the right certificate to use for logging in via ssh.
+
+#hmmm: not the slightest bit general here currently.
+#      what about having a main key variable and a sourceforge key variable?
+#      better yet, an array of site patterns and keys for those sites.
+
+keyfile="$HOME/.ssh/id_dsa_fred"
+
+if [ ! -z "$(echo $* | grep -i sourceforge)" ]; then
+  keyfile="$HOME/.ssh/id_dsa_sourceforge"
+fi
+
+if [ ! -f "$keyfile" ]; then
+  unset keyfile
+fi
diff --git a/customizing/fred/scripts/sftp.sh b/customizing/fred/scripts/sftp.sh
new file mode 100644 (file)
index 0000000..2db8612
--- /dev/null
@@ -0,0 +1,7 @@
+#!/bin/bash
+
+source "$FEISTY_MEOW_GENERATED/custom/scripts/pick_credentials.sh"
+
+# a wrapper for the file transfers using secure shell.
+\sftp -i "$keyfile" $*
+
index 2e1b3742f227cfabc167ca9f4762f54089e9a52a..9bf10d17888de7775dbea40356a7e0713529304f 100755 (executable)
@@ -2,7 +2,7 @@
 
 # wraps our calling the secure shell and lets us pick our credentials.
 
-source "$FEISTY_MEOW_SCRIPTS/security/pick_credentials.sh"
+source "$FEISTY_MEOW_GENERATED/custom/scripts/pick_credentials.sh"
 
 if [ ! -z "$keyfile" ]; then
   \ssh -i "$keyfile" -X -C -c blowfish-cbc $*
diff --git a/scripts/security/pick_credentials.sh b/scripts/security/pick_credentials.sh
deleted file mode 100644 (file)
index 8b4b55e..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-#!/bin/bash
-
-# chooses the right certificate to use for logging in via ssh.
-
-#hmmm: not the slightest bit general here currently.
-#      what about having a main key variable and a sourceforge key variable?
-#      better yet, an array of site patterns and keys for those sites.
-
-keyfile="$HOME/.ssh/id_dsa_fred"
-
-if [ ! -z "$(echo $* | grep -i sourceforge)" ]; then
-  keyfile="$HOME/.ssh/id_dsa_sourceforge"
-fi
-
-if [ ! -f "$keyfile" ]; then
-  unset keyfile
-fi
diff --git a/scripts/security/sftp.sh b/scripts/security/sftp.sh
deleted file mode 100644 (file)
index fd38177..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-#!/bin/bash
-
-source "$FEISTY_MEOW_SCRIPTS/security/pick_credentials.sh"
-
-# a wrapper for the file transfers using secure shell.
-\sftp -i "$keyfile" $*
-