From a0309b2896f08729ae1883e87beed97619989ca7 Mon Sep 17 00:00:00 2001 From: Matan Sarsha Date: Sun, 1 Sep 2024 00:13:07 +0300 Subject: [PATCH] feat(scripts): exit node --- install/freegamesclaimer-install.sh | 20 ++++++-------------- 1 file changed, 6 insertions(+), 14 deletions(-) diff --git a/install/freegamesclaimer-install.sh b/install/freegamesclaimer-install.sh index b8163438..cfc61144 100644 --- a/install/freegamesclaimer-install.sh +++ b/install/freegamesclaimer-install.sh @@ -80,25 +80,17 @@ CHOICES=$(whiptail --title "Select game services" --separate-output --checklist function setup_epic() { $STD node epic-games || success=false - if [ $success == false ]; then - echo "epic failed" - else - msg_info "Creating daily cronjob for epic games" - (crontab -l ; echo "0 0 * * * cd /opt/freegamesclaimer && node epic-games") | crontab - - msg_ok "Cronjob created" - fi + msg_info "Creating daily cronjob for epic games" + (crontab -l ; echo "0 0 * * * cd /opt/freegamesclaimer && node epic-games") | crontab - + msg_ok "Cronjob created" } function setup_gog() { $STD node gog || success=false - if [ $success == false ]; then - echo "gog failed" - else - msg_info "Creating daily cronjob for gog" - (crontab -l ; echo "02 0 * * * cd /opt/freegamesclaimer && node gog") | crontab - - msg_ok "Cronjob created" - fi + msg_info "Creating daily cronjob for gog" + (crontab -l ; echo "02 0 * * * cd /opt/freegamesclaimer && node gog") | crontab - + msg_ok "Cronjob created" } echo $CHOICES