Skip to content

Commit

Permalink
Use proper syntax for else if statement
Browse files Browse the repository at this point in the history
Signed-off-by: Ethan Dye <mrtops03@gmail.com>
  • Loading branch information
ecdye committed Jun 8, 2024
1 parent d9f7d11 commit fa85bf5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion install.bash
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion uninstall.bash
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fa85bf5

Please sign in to comment.