oneshot_linux/install
2023-01-03 15:47:46 -05:00

30 lines
847 B
Bash
Executable file

#!/bin/bash
echo "Installing fix_libs.sh"
if [ -f $HOME/.local/share/Steam/steamapps/common/OneShot/fix_libs.sh ]; then
echo "Already installed"
else
cp fix_libs.sh $HOME/.local/share/Steam/steamapps/common/OneShot/
chmod +x $HOME/.local/share/Steam/steamapps/common/OneShot/fix_libs.sh
fi
echo "Installing journal.sh"
if [ -f $HOME/.local/share/Steam/steamapps/common/OneShot/journal.sh ]; then
echo "Already installed"
else
cp journal.sh $HOME/.local/share/Steam/steamapps/common/OneShot/
chmod +x $HOME/.local/share/Steam/steamapps/common/OneShot/journal.sh
fi
echo "Installing onejournal"
chmod +x onejournal
if [ -f /usr/bin/onejournal ]; then
echo "Already installed"
else
sudo cp onejournal /usr/bin/
sudo chmod +x /usr/bin/onejournal
fi
echo "Fixing libraries"
cd ~/.local/share/Steam/steamapps/common/OneShot/
sh fix_libs.sh