From fa85bf569abdc8c5fad95cfae4aad3bc5583ca78 Mon Sep 17 00:00:00 2001 From: Ethan Dye Date: Fri, 7 Jun 2024 20:28:30 -0600 Subject: [PATCH] Use proper syntax for else if statement Signed-off-by: Ethan Dye --- install.bash | 2 +- uninstall.bash | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/install.bash b/install.bash index cf25874..798a012 100755 --- a/install.bash +++ b/install.bash @@ -68,7 +68,7 @@ echo "Starting zram-config service" if [[ "$OS" == "alpine" ]]; then rc-update add zram-config boot rc-service zram-config start -else if [[ -n "$GITHUB_ENV" ]]; then # GitHub Actions test environment doesn't have systemd +elif [[ -n "$GITHUB_ENV" ]]; then # GitHub Actions test environment doesn't have systemd zram-config start else systemctl daemon-reload diff --git a/uninstall.bash b/uninstall.bash index ce87bcd..15140ce 100755 --- a/uninstall.bash +++ b/uninstall.bash @@ -22,7 +22,7 @@ if [[ $OS == "alpine" ]]; then fi rm -f /etc/init.d/zram-config rm -f /usr/sbin/zram-config -else if [[ -n "$GITHUB_ENV" ]]; then +elif [[ -n "$GITHUB_ENV" ]]; then rm -f /etc/systemd/system/zram-config.service sed -i '\|^ReadWritePaths=/usr/local/share/zram-config/log$|d' /lib/systemd/system/logrotate.service rm -f /usr/local/sbin/zram-config