From 051f37b3ffa87e90013a7ca70723e7da0093a37e Mon Sep 17 00:00:00 2001 From: Nicko98 <39709875+Nicko98@users.noreply.github.com> Date: Tue, 9 Mar 2021 22:49:54 +0100 Subject: [PATCH] Made savefile invisible --- interactiveAAXtoMP3 | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/interactiveAAXtoMP3 b/interactiveAAXtoMP3 index a9495d9..f3e4223 100644 --- a/interactiveAAXtoMP3 +++ b/interactiveAAXtoMP3 @@ -60,16 +60,16 @@ lastauthcode="" lastloglevel="1" # ===Get Values from last time=== -if [ -f "interactive.txt" ]; then - for ((i=1;i<=$(wc -l interactive.txt | cut -d " " -f 1);i++)) do - line=$(head -$i interactive.txt | tail -1) +if [ -f ".interactivesave" ]; then + for ((i=1;i<=$(wc -l .interactivesave | cut -d " " -f 1);i++)) do + line=$(head -$i .interactivesave | tail -1) case $(echo $line | cut -d " " -f 1 | $SED 's/.$//') in codec ) lastcodec="$(echo $line | cut -d " " -f 2)";; compression ) lastcompression="$(echo $line | cut -d " " -f 2)";; chapters ) lastchapters="$(echo $line | cut -d " " -f 2)";; authcode ) lastauthcode="$(echo $line | cut -d " " -f 2)";; loglevel ) lastloglevel="$(echo $line | cut -d " " -f 2)";; - * ) rm interactive.txt; exit 1;; + * ) rm .interactivesave; exit 1;; esac done fi @@ -153,7 +153,7 @@ clear; echo -e "$summary\n" echo -e "$call\n" # ===Save chosen options=== -echo -e $savefile | $SED "s;\ level:;:;" > interactive.txt +echo -e $savefile | $SED "s;\ level:;:;" > .interactivesave # ===Call AAXtoMP3=== $call