diff --git a/src/freedombone b/src/freedombone index a668cd3c..6a1d3964 100755 --- a/src/freedombone +++ b/src/freedombone @@ -3818,7 +3818,7 @@ function backup_to_friends_servers { echo " if [ -d /home/$MY_USERNAME/.gnupg_fragments ]; then" >> /usr/bin/$BACKUP_TO_FRIENDS_SCRIPT_NAME echo ' if [ $REMOTE_DOMAIN ]; then' >> /usr/bin/$BACKUP_TO_FRIENDS_SCRIPT_NAME echo " cd /home/$MY_USERNAME/.gnupg_fragments" >> /usr/bin/$BACKUP_TO_FRIENDS_SCRIPT_NAME - echo ' no_of_shares=$(ls -afq keyshare* | wc -l)' >> /usr/bin/$BACKUP_TO_FRIENDS_SCRIPT_NAME + echo ' no_of_shares=$(ls -afq keyshare.asc.* | wc -l)' >> /usr/bin/$BACKUP_TO_FRIENDS_SCRIPT_NAME echo ' no_of_shares=$((no_of_shares - 2))' >> /usr/bin/$BACKUP_TO_FRIENDS_SCRIPT_NAME echo ' if [[ ${no_of_shares} > 0 ]]; then' >> /usr/bin/$BACKUP_TO_FRIENDS_SCRIPT_NAME echo ' # Pick a share index based on the domain name' >> /usr/bin/$BACKUP_TO_FRIENDS_SCRIPT_NAME diff --git a/src/freedombone-recoverkey b/src/freedombone-recoverkey index 6d936a9c..308375ce 100755 --- a/src/freedombone-recoverkey +++ b/src/freedombone-recoverkey @@ -127,7 +127,7 @@ fi # was anything downloaded? cd $FRAGMENTS_DIR -no_of_shares=$(ls -afq keyshare* | wc -l) +no_of_shares=$(ls -afq keyshare.asc.* | wc -l) no_of_shares=$((no_of_shares - 2)) if [[ ${no_of_shares} == 0 ]]; then echo 'No key fragments were retrieved'