Do not save source files by default.
This commit is contained in:
parent
35fa143b20
commit
5b6668f57b
10
tojam
10
tojam
@ -61,6 +61,7 @@ mkdir -p "${sessiondir}"
|
|||||||
if ! [[ -r "${config}/config" ]]; then
|
if ! [[ -r "${config}/config" ]]; then
|
||||||
# Write initial config file
|
# Write initial config file
|
||||||
echo 'anonymous="true"' >> "${config}/config"
|
echo 'anonymous="true"' >> "${config}/config"
|
||||||
|
echo 'saveSourceFiles="false"' >> "${config}/config"
|
||||||
echo 'soundDriver="jack"' >> "${config}/config"
|
echo 'soundDriver="jack"' >> "${config}/config"
|
||||||
echo "userName='Tojam$(date '+%S')'" >> "${config}/config"
|
echo "userName='Tojam$(date '+%S')'" >> "${config}/config"
|
||||||
fi
|
fi
|
||||||
@ -70,10 +71,15 @@ source "${config}/config"
|
|||||||
if [[ "${anonymous}" == "true" ]]; then
|
if [[ "${anonymous}" == "true" ]]; then
|
||||||
userName="anonymous:${userName}"
|
userName="anonymous:${userName}"
|
||||||
fi
|
fi
|
||||||
|
# Fix up the source files setting
|
||||||
|
if [[ "${saveSourceFiles}" == "false" ]]; then
|
||||||
|
saveSourceFiles="-nosavesourcefiles"
|
||||||
|
else
|
||||||
|
saveSourceFiles=" "
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
declare -A servers=(
|
declare -A servers=(
|
||||||
[Shark Tank]="sharktank.sytes.net:2050"
|
|
||||||
[Ninjamer 1]="ninjamer.com"
|
[Ninjamer 1]="ninjamer.com"
|
||||||
[Ninjamer 2]="ninjamer.com:2050"
|
[Ninjamer 2]="ninjamer.com:2050"
|
||||||
[Ninjamer 3]="ninjamer.com:2051"
|
[Ninjamer 3]="ninjamer.com:2051"
|
||||||
@ -106,4 +112,4 @@ esac
|
|||||||
|
|
||||||
ninjam="$(command -v cninjam 2> /dev/null)"
|
ninjam="$(command -v cninjam 2> /dev/null)"
|
||||||
[[ ${#ninjam} -le 3 ]] && { echo "Could not find cninjam."; exit 1; }
|
[[ ${#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}
|
||||||
|
Loading…
Reference in New Issue
Block a user