Made savefile invisible

This commit is contained in:
Nicko98 2021-03-09 22:49:54 +01:00 committed by GitHub
parent 2206cf9dd8
commit 051f37b3ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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