From 5b6668f57bcb3b0aaf3c52db2b4861ab27fce599 Mon Sep 17 00:00:00 2001 From: Storm Dragon Date: Wed, 13 Dec 2023 18:26:03 -0500 Subject: [PATCH] Do not save source files by default. --- tojam | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/tojam b/tojam index fcb90ff..f875487 100755 --- a/tojam +++ b/tojam @@ -61,6 +61,7 @@ mkdir -p "${sessiondir}" if ! [[ -r "${config}/config" ]]; then # Write initial config file echo 'anonymous="true"' >> "${config}/config" + echo 'saveSourceFiles="false"' >> "${config}/config" echo 'soundDriver="jack"' >> "${config}/config" echo "userName='Tojam$(date '+%S')'" >> "${config}/config" fi @@ -70,10 +71,15 @@ source "${config}/config" if [[ "${anonymous}" == "true" ]]; then userName="anonymous:${userName}" fi +# Fix up the source files setting +if [[ "${saveSourceFiles}" == "false" ]]; then + saveSourceFiles="-nosavesourcefiles" +else + saveSourceFiles=" " +fi declare -A servers=( - [Shark Tank]="sharktank.sytes.net:2050" [Ninjamer 1]="ninjamer.com" [Ninjamer 2]="ninjamer.com:2050" [Ninjamer 3]="ninjamer.com:2051" @@ -106,4 +112,4 @@ esac ninjam="$(command -v cninjam 2> /dev/null)" [[ ${#ninjam} -le 3 ]] && { echo "Could not find cninjam."; exit 1; } -$ninjam "${server}" -user "${userName}" -${soundDriver} -sessiondir "${sessiondir}" +$ninjam "${server}" -user "${userName}" -${soundDriver} -sessiondir "${sessiondir}" ${saveSourceFiles}