From 7473fc86748ea4e7be79e98130bc8a5132993e4f Mon Sep 17 00:00:00 2001 From: Franklyn Tackitt Date: Mon, 1 Aug 2022 10:12:04 -0700 Subject: [PATCH] Add messages to install.sh, unify message format --- install.sh | 4 ++++ uninstall.sh | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) mode change 100644 => 100755 install.sh mode change 100644 => 100755 uninstall.sh diff --git a/install.sh b/install.sh old mode 100644 new mode 100755 index 3af867b..da495c1 --- a/install.sh +++ b/install.sh @@ -1,19 +1,23 @@ #!/usr/bin/env bash # Create required directories +echo ":: Creating required directories" mkdir -p "$HOME/homebrew" mkdir -p "$HOME/.config/systemd/user" # Clone the startup animations repository if [[ ! -d "$HOME/homebrew/startup_animations" ]]; then + echo ":: Installing to $HOME/homebrew/startup_animations" git clone https://github.com/kageurufu/steamdeck_startup_animations "$HOME/homebrew/startup_animations" cd "$HOME/homebrew/startup_animations" else + echo ":: Updating $HOME/homebrew/startup_animations" cd "$HOME/homebrew/startup_animations" git pull fi # Install the service file +echo ":: Installing the startup service" ln -sf "$HOME/homebrew/startup_animations/randomize_deck_startup.service" "$HOME/.config/systemd/user/randomize_deck_startup.service" systemctl --user daemon-reload systemctl --user enable --now randomize_deck_startup.service diff --git a/uninstall.sh b/uninstall.sh old mode 100644 new mode 100755 index 732491e..af5227c --- a/uninstall.sh +++ b/uninstall.sh @@ -1,19 +1,19 @@ #!/usr/bin/env bash if [[ -e "$HOME/.config/systemd/user/randomize_deck_startup.service" ]]; then - echo "Removing the boot service" + echo ":: Removing the boot service" systemctl --user disable randomize_deck_startup.service rm "$HOME/.config/systemd/user/randomize_deck_startup.service" fi if [[ -f "$HOME/.steam/steam/steamui/movies/deck_startup.webm.backup" ]]; then - echo "Restoring deck_startup.webm.backup" + echo ":: Restoring deck_startup.webm.backup" rm "$HOME/.steam/steam/steamui/movies/deck_startup.webm" mv "$HOME/.steam/steam/steamui/movies/deck_startup.webm.backup" "$HOME/.steam/steam/steamui/movies/deck_startup.webm" fi if [[ -e "$HOME/homebrew/startup_animations" ]]; then - echo "Deleting the startup_animations directory" + echo ":: Deleting the startup_animations directory" rm -rf "$HOME/homebrew/startup_animations" fi