mirror of
https://github.com/eliasstepanik/ark-ac-server-tools.git
synced 2026-01-23 06:58:28 +00:00
Remove incorrect quoting in installmod and uninstallmod
This commit is contained in:
parent
1c7a3d8180
commit
46a157d0dc
@ -2397,7 +2397,7 @@ doInstallMod(){
|
|||||||
local modid
|
local modid
|
||||||
local steamdataroot="${steamdataroot:-${steamcmdroot}}"
|
local steamdataroot="${steamdataroot:-${steamcmdroot}}"
|
||||||
local steamworkshopdir="${steamworkshopdir:-${steamdataroot}/steamapps/workshop}"
|
local steamworkshopdir="${steamworkshopdir:-${steamdataroot}/steamapps/workshop}"
|
||||||
for modid in "${1//,/ }"; do
|
for modid in ${1//,/ }; do
|
||||||
if [[ " $* " =~ *" --validate " ]]; then
|
if [[ " $* " =~ *" --validate " ]]; then
|
||||||
if [ -f "${steamworkshopdir}/appworkshop_${mod_appid}.acf" ]; then
|
if [ -f "${steamworkshopdir}/appworkshop_${mod_appid}.acf" ]; then
|
||||||
sed -i "/^\\t\\t\"${modid}\"/,/^\\t\\t}/d" "${steamworkshopdir}/appworkshop_${mod_appid}.acf"
|
sed -i "/^\\t\\t\"${modid}\"/,/^\\t\\t}/d" "${steamworkshopdir}/appworkshop_${mod_appid}.acf"
|
||||||
@ -2436,7 +2436,7 @@ doUninstallAllMods(){
|
|||||||
#
|
#
|
||||||
doUninstallMod(){
|
doUninstallMod(){
|
||||||
local modid
|
local modid
|
||||||
for modid in "${1//,/ }"; do
|
for modid in ${1//,/ }; do
|
||||||
local moddir="$arkserverroot/ShooterGame/Content/Mods/$modid"
|
local moddir="$arkserverroot/ShooterGame/Content/Mods/$modid"
|
||||||
local modfile="$arkserverroot/ShooterGame/Content/Mods/${modid}.mod"
|
local modfile="$arkserverroot/ShooterGame/Content/Mods/${modid}.mod"
|
||||||
if [ -d "${moddir}" ]; then
|
if [ -d "${moddir}" ]; then
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user