From b251ffda2b1fc9774bccd1587497d06f87a28e51 Mon Sep 17 00:00:00 2001 From: tim Date: Sun, 26 Apr 2020 22:12:13 +0200 Subject: [PATCH] ... and another --- copy_firefox_data.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/copy_firefox_data.sh b/copy_firefox_data.sh index 5207439..7a69eba 100755 --- a/copy_firefox_data.sh +++ b/copy_firefox_data.sh @@ -10,6 +10,7 @@ epoch=$( date +%Y%m%d%H%M ); server=10.25.0.1 +#server=treehouse.org.za backups=~/Downloads/firefox copy() { @@ -54,7 +55,7 @@ fi if [ -x ~/bin/firefox_decrypt.py ]; then do_copy=0 mkdir -p ${backups}/passwords - previous=$( ls ${backups}/passwords/firefox_passwords.* | tail -1 ) + previous=$( ls ${backups}/passwords/firefox_passwords.* 2>/dev/null | tail -1 ) echo '' | ~/bin/firefox_decrypt.py > ${backups}/passwords/firefox_passwords.${epoch} 2>/dev/null if [ -f "${previous}" ]; then if diff -q ${previous} ${backups}/passwords/firefox_passwords.${epoch} >/dev/null; then