commit 6a0ce1e51ab2c837f52dd6384e01d022e95825fa
parent c02ef73e1723848dafd42fc58ff9f9f0535ca257
Author: parazyd <parazyd@dyne.org>
Date: Fri, 17 Jun 2016 09:59:57 +0200
various optimizations
Diffstat:
3 files changed, 3 insertions(+), 8 deletions(-)
diff --git a/autoup b/autoup
@@ -9,4 +9,4 @@ webdir=tmp
test -z "$1" && exit 1 || filename=$(basename $1)
scp -i "$sshkey" "$1" "${sshuser}@${server}:${webroot}/${webdir}/${filename}"
echo "https://$server/$webdir/$filename" | xsel -i
-rm $1
+#rm $1
diff --git a/sslget b/sslget
@@ -3,10 +3,5 @@
# retrieve SSL certificate of a website
# it assumes 443 to be the default SSL port
-if [[ -n $2 ]]; then
- portnum=$2
-else
- portnum=443
-fi
-
+portnum=${2-443}
echo | openssl s_client -connect $1:$portnum 2>&1| sed '/BEGIN CERT/,/END CERT/p;d'
diff --git a/supadd b/supadd
@@ -56,7 +56,7 @@ case $1 in
binpath="$1"
bin=`echo $binpath | awk -F"/" '{print $NF}'`
if ! [[ $binpath == /* ]]; then
- binpath=`pwd`/$bin
+ binpath="$PWD/$bin"
fi
getsha || exit 1