Skip to content

Commit

Permalink
fixed copy-world.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
misprit7 committed Jul 19, 2024
1 parent 613fabe commit f0ef4a7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions copy-world.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# Copies world to/from game files
#################################################

TARGET_DIR="~/.local/share/Terraria/tModLoader/Worlds"
TARGET_DIR="$HOME/.local/share/Terraria/tModLoader/Worlds"
TO_FLAG=0
FROM_FLAG=0
MNT_FLAG=0
Expand Down Expand Up @@ -34,11 +34,11 @@ if [ "$MNT_FLAG" -eq 1 ]; then
fi

if [ "$TO_FLAG" -eq 1 ]; then
cp $(dirname "$0")/computer.wld "$TARGET_DIR"
cp $(dirname "$0")/computer.twld "$TARGET_DIR"
cp $(dirname "$0")/computerraria.wld $TARGET_DIR
cp $(dirname "$0")/computerraria.twld $TARGET_DIR
elif [ "$FROM_FLAG" -eq 1 ]; then
cp "$TARGET_DIR/computer.wld" $(dirname "$0")
cp "$TARGET_DIR/computer.twld" $(dirname "$0")
cp "$TARGET_DIR/computerraria.wld" $(dirname "$0")
cp "$TARGET_DIR/computerraria.twld" $(dirname "$0")
else
echo "Supply either --to or --from to copy either to or from the Terraria world files"
exit 1
Expand Down

0 comments on commit f0ef4a7

Please sign in to comment.