Skip to content

Commit

Permalink
Added cleaning of Oxide Reference Config and fixed rm commands having…
Browse files Browse the repository at this point in the history
… two arguments
  • Loading branch information
BippyMiester committed Aug 3, 2024
1 parent c6fe346 commit 747c8e2
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions games/carbon/helpers/clean_rustdedicated.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,18 @@ function Clean_RustDedicated() {
RUSTEDIT="/home/container/RustDedicated_Data/Managed/Oxide.Ext.RustEdit.dll"
CHAOS="/home/container/RustDedicated_Data/Managed/Oxide.Ext.Chaos.dll"
DISCORD="/home/container/RustDedicated_Data/Managed/Oxide.Ext.Discord.dll"
OXIDEREF="/home/container/RustDedicated_Data/Managed/Oxide.References.dll.config"
DEST_DIR="/home/container/${MODDING_ROOT}/extensions/"

# Check if Oxide Reference Config is installed
if [[ -f "$OXIDEREF" ]]; then
Info "Found Oxide Reference Config! Moving it now..."
# Move it
rm -rf "$OXIDEREF"
Success "Oxide Reference Config Moved!"
else
Debug "Can not find OXIDEREF: ${OXIDEREF}"
fi

if [[ "${FRAMEWORK}" =~ "carbon" ]]; then
Debug "Carbon Framework Detected!"
Expand Down Expand Up @@ -71,23 +82,23 @@ function Clean_RustDedicated() {
if [[ -f "$RUSTEDIT" ]]; then
Info "Found Rust Edit Extension! Moving it to the trash now..."
# Move it
rm -rf "$RUSTEDIT" "$DEST_DIR"
rm -rf "$RUSTEDIT"
Success "Rust Edit Extension Moved!"
fi

# Check if Chaos Code Extension is installed
if [[ -f "$CHAOS" ]]; then
Info "Found Chaos Code Extension! Moving it to the trash now..."
# Move it
rm -rf "$CHAOS" "$DEST_DIR"
rm -rf "$CHAOS"
Success "Chaos Code Extension Moved!"
fi

# Check if Discord Extension is installed
if [[ -f "$DISCORD" ]]; then
Info "Found Discord Extension! Moving it to the trash now..."
# Move it
rm -rf "$DISCORD" "$DEST_DIR"
rm -rf "$DISCORD"
Success "Discord Extension Moved!"
fi
fi
Expand Down

0 comments on commit 747c8e2

Please sign in to comment.