URI:
       tvarious optimizations - scripts - random scripts
  HTML git clone git://parazyd.org/scripts.git
   DIR Log
   DIR Files
   DIR Refs
       ---
   DIR commit 6a0ce1e51ab2c837f52dd6384e01d022e95825fa
   DIR parent c02ef73e1723848dafd42fc58ff9f9f0535ca257
  HTML Author: parazyd <parazyd@dyne.org>
       Date:   Fri, 17 Jun 2016 09:59:57 +0200
       
       various optimizations
       
       Diffstat:
         M autoup                              |       2 +-
         M sslget                              |       7 +------
         M supadd                              |       2 +-
       
       3 files changed, 3 insertions(+), 8 deletions(-)
       ---
   DIR diff --git a/autoup b/autoup
       t@@ -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
   DIR diff --git a/sslget b/sslget
       t@@ -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'
   DIR diff --git a/supadd b/supadd
       t@@ -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