Browse Source

fix track pathing better using pushd and popd

master
poikilos 6 years ago
committed by Jacob Gustafson
parent
commit
8b9f94196c
  1. 11
      webapp/install-mts.sh

11
webapp/install-mts.sh

@ -5,8 +5,7 @@ if [ ! -d "$flag_dir" ]; then
echo "ERROR: missing $flag_dir"
exit 1
fi
enliven_path=".."
cd "$extracted_name"
pushd "$extracted_name"
extra_options=""
if [ "@$1" = "@--client" ]; then
extra_options="--client"
@ -105,5 +104,9 @@ else
rsync -rt "$flag_dir/mods/$mod_name" "$HOME/minetest/games/ENLIVEN/mods"
# cp -f "$flag_dir/mods/LICENSE" "$HOME/minetest/games/ENLIVEN/mods/LICENSE"
fi
rsync -rt "$enliven_path/patches/subgame/menu/" "$HOME/minetest/games/ENLIVEN/menu"
rsync -rt "$enliven_path/patches/Bucket_Game-patched/" "$HOME/minetest/games/ENLIVEN"
popd
cd ..
echo "updating '$HOME/minetest/games/ENLIVEN/menu'..."
rsync -rt "patches/subgame/menu/" "$HOME/minetest/games/ENLIVEN/menu"
echo "updating '$HOME/minetest/games/ENLIVEN'..."
rsync -rt "patches/Bucket_Game-patched/" "$HOME/minetest/games/ENLIVEN"

Loading…
Cancel
Save