From a9403871a4d56f9327857ed7d7474e3205074780 Mon Sep 17 00:00:00 2001 From: Mart Lubbers Date: Fri, 13 May 2016 11:51:34 +0200 Subject: [PATCH] remove push scirpt --- put.bash | 18 ------------------ 1 file changed, 18 deletions(-) delete mode 100644 put.bash diff --git a/put.bash b/put.bash deleted file mode 100644 index 83bb436..0000000 --- a/put.bash +++ /dev/null @@ -1,18 +0,0 @@ -#!/bin/bash -set -e -files=$(find . -type f -not -iwholename "*.git*" -not -name "README.md" -not -name "put.bash" -not -name "hashes.txt") -user=ftp@martlubbers.net:$(pass ftp.martlubbers.net/ftp@martlubbers.net) - -for f in $files -do - origmd5=$(grep "$f" ./hashes.txt | awk '{print $1}') - currmd5=$(md5sum "$f" | awk '{print $1}') - if [ "$origmd5" = "$currmd5" ] - then - echo "$f is not changed" - else - echo "$f is changed" - curl -u "$user" -T $f ftp://martlubbers.net/public_html/$f - fi -done -md5sum ./*{,/*{,/*}} > ./hashes.txt || true -- 2.20.1