Fixes for makefile and aether.bash -- deduplicate the right files.
This commit is contained in:
1 parent
0b7c6305e1
commit
751925085e
2 files changed
+6
-3
No files matched your search
+2
-2
@@ -7,8 +7,8 @@ if [ ! -f /home/aether/.ssh/aether ]; then
|
||||
exit
|
||||
fi
|
||||
cd /home/aether
|
||||
if [ $(ls ./aether-*.tar.gz | wc -l) -gt 7 ]; then
|
||||
rm $(ls -tr ./aether-*.tar.gz | head -n 1);
|
||||
if [ $(ls ./aether-*.enc | wc -l) -gt 7 ]; then
|
||||
rm $(ls -tr ./aether-*.enc | head -n 1);
|
||||
fi
|
||||
export TARGET="aether-"$(date +%F)".enc"
|
||||
printf "get /aether/aether.enc %s\nbye\n" $TARGET | sftp -o IdentityFile=./.ssh/aether aether@aninix.net
|
||||
|
||||
Reference in new issue
Block a user