From 2a411eb4471b396decebf26fcabeb91da27fff7a Mon Sep 17 00:00:00 2001 From: Yudi Date: Sun, 23 Sep 2018 22:08:24 -0300 Subject: [PATCH] Updated Scheduling exports with Mono & Crontab (markdown) --- Scheduling-exports-with-Mono-&-Crontab.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Scheduling-exports-with-Mono-&-Crontab.md b/Scheduling-exports-with-Mono-&-Crontab.md index 0b74232..fe94178 100644 --- a/Scheduling-exports-with-Mono-&-Crontab.md +++ b/Scheduling-exports-with-Mono-&-Crontab.md @@ -29,17 +29,17 @@ fi PATH=/Library/Frameworks/Mono.framework/Versions/Current/bin/:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin -mono DiscordChatExporter.Cli.exe export -t $TOKEN $ISBOTYES -c $CHANNEL -f $EXPORTFORMAT -o exporttmp +mono DiscordChatExporter.Cli.exe export -t ${TOKEN//\"} $ISBOTYES -c $CHANNEL -f $EXPORTFORMAT -o exporttmp CURRENTTIME=`date +"%Y-%m-%d-%H-%M-%S"` if [[ "$EXPORTFORMAT" == "PlainText" ]]; then - mv "exporttmp" $EXPORTDIRECTORY/$FILENAME-$CURRENTTIME.txt + mv "exporttmp" ${EXPORTDIRECTORY//\"}/$FILENAME-$CURRENTTIME.txt elif [[ "$EXPORTFORMAT" == "Html"* ]]; then - mv "exporttmp" $EXPORTDIRECTORY/$FILENAME-$CURRENTTIME.html + mv "exporttmp" ${EXPORTDIRECTORY//\"}/$FILENAME-$CURRENTTIME.html elif [[ "$EXPORTFORMAT" == "Csv" ]]; then - mv "exporttmp" $EXPORTDIRECTORY/$FILENAME-$CURRENTTIME.csv + mv "exporttmp" ${EXPORTDIRECTORY//\"}/$FILENAME-$CURRENTTIME.csv else exit fi @@ -58,7 +58,7 @@ exit `` with a filename without spaces - `` with the export directory without quotes (e.g. /home/user/Documents/CronExport) + `` with the export directory (e.g. /home/user/Documents/CronExport) `` with one of the available export formats