From 3a39c88144aca9a38103d176b891ca486609db89 Mon Sep 17 00:00:00 2001 From: WerWolv Date: Thu, 7 Apr 2022 01:17:22 +0200 Subject: Prevent errors from being printed on first install --- dist/install_release.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'dist/install_release.sh') diff --git a/dist/install_release.sh b/dist/install_release.sh index 449b720d..2d792f05 100644 --- a/dist/install_release.sh +++ b/dist/install_release.sh @@ -1,5 +1,7 @@ #!/bin/sh +echo "Installing Steam Deck Plugin Loader release..." + HOMEBREW_FOLDER=/home/deck/homebrew # Create folder structure @@ -7,13 +9,13 @@ rm -rf ${HOMEBREW_FOLDER}/services mkdir -p ${HOMEBREW_FOLDER}/services mkdir -p ${HOMEBREW_FOLDER}/plugins -# Download latest nightly build and install it +# Download latest release and install it curl -L https://github.com/SteamDeckHomebrew/PluginLoader/releases/latest/download/PluginLoader --output ${HOMEBREW_FOLDER}/services/PluginLoader chmod +x ${HOMEBREW_FOLDER}/services/PluginLoader -systemctl --user stop plugin_loader -systemctl --user disable plugin_loader -rm /home/deck/.config/systemd/user/plugin_loader.service +systemctl --user stop plugin_loader 2> /dev/null +systemctl --user disable plugin_loader 2> /dev/null +rm -f /home/deck/.config/systemd/user/plugin_loader.service cat > /home/deck/.config/systemd/user/plugin_loader.service <<- EOM [Unit] Description=SteamDeck Plugin Loader -- cgit v1.2.3