From: Mart Lubbers Date: Fri, 13 May 2016 09:51:34 +0000 (+0200) Subject: remove push scirpt X-Git-Url: https://git.martlubbers.net/?p=martlubbers.net.git;a=commitdiff_plain;h=a9403871a4d56f9327857ed7d7474e3205074780 remove push scirpt --- 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