diff --git a/src/freedombone-keydrive b/src/freedombone-keydrive index 96b743df..0f839f58 100755 --- a/src/freedombone-keydrive +++ b/src/freedombone-keydrive @@ -184,7 +184,7 @@ if (( no_of_local_shares < 3 )); then fi share_files=($LOCAL_FRAGMENTS_DIR/keyshare.asc.*) -SHARE_FILENAME=${files[RANDOM % ${#share_files[@]}]} +SHARE_FILENAME=${share_files[RANDOM % ${#share_files[@]}]} cp -f $SHARE_FILENAME $FRAGMENTS_DIR no_of_usb_shares=$(ls -afq $FRAGMENTS_DIR/keyshare.asc.* | wc -l)