mirror of
https://github.com/sigmasternchen/ThroughYou
synced 2025-03-15 08:08:57 +00:00
... I'm an idiot.
This commit is contained in:
parent
0576f357a1
commit
c14135d0c7
1 changed files with 3 additions and 3 deletions
|
@ -59,7 +59,7 @@ echo -n "Password: "
|
||||||
read -s password
|
read -s password
|
||||||
echo
|
echo
|
||||||
|
|
||||||
remotestat=$(echo $password | ./diary.sh -q stat "$diaryFile")
|
remotestat=$(echo $password | $pensievePath -q stat "$diaryFile")
|
||||||
if test $? != 0; then
|
if test $? != 0; then
|
||||||
echo "There was an error while decrypting. Wrong key?"
|
echo "There was an error while decrypting. Wrong key?"
|
||||||
exit 1
|
exit 1
|
||||||
|
@ -69,7 +69,7 @@ if test "$localstat" = ""; then
|
||||||
echo -n "Do you want to take a look at the diary? [y/n] "
|
echo -n "Do you want to take a look at the diary? [y/n] "
|
||||||
read yn
|
read yn
|
||||||
if test "$yn" = "yes" -o "$yn" = "y"; then
|
if test "$yn" = "yes" -o "$yn" = "y"; then
|
||||||
echo $password | pensievePath -q -p read "$diaryFile"
|
echo $password | $pensievePath -q -p read "$diaryFile"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo -e "$addrKey: $addr\n" > $file
|
echo -e "$addrKey: $addr\n" > $file
|
||||||
|
@ -82,7 +82,7 @@ lnren=$(echo "$localstat" | grep "Entries:" | awk '{ print $2 }')
|
||||||
llast=$(echo "$localstat" | grep "Last entry:" | awk '{ print $3}')
|
llast=$(echo "$localstat" | grep "Last entry:" | awk '{ print $3}')
|
||||||
rsize=$(echo "$remotestat" | grep "Decrypted size:" | awk '{ print $3}')
|
rsize=$(echo "$remotestat" | grep "Decrypted size:" | awk '{ print $3}')
|
||||||
rlast=$(echo "$remotestat" | grep "Last entry:" | awk '{ print $3}')
|
rlast=$(echo "$remotestat" | grep "Last entry:" | awk '{ print $3}')
|
||||||
rnren=$(echo "$localstat" | grep "Entries:" | awk '{ print $2 }')
|
rnren=$(echo "$remotestat" | grep "Entries:" | awk '{ print $2 }')
|
||||||
|
|
||||||
echo
|
echo
|
||||||
echo "Last seen state:"
|
echo "Last seen state:"
|
||||||
|
|
Loading…
Reference in a new issue