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