From ad8ef171a02700e12b47eddee17524d53b12d4de Mon Sep 17 00:00:00 2001 From: tteckster Date: Tue, 15 Mar 2022 08:48:20 -0400 Subject: [PATCH] Update dashy-update.sh --- misc/dashy-update.sh | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/misc/dashy-update.sh b/misc/dashy-update.sh index 3a065303..104730a0 100644 --- a/misc/dashy-update.sh +++ b/misc/dashy-update.sh @@ -8,30 +8,36 @@ CL=`echo "\033[m"` clear echo -en "${GN} Stopping Dashy... " systemctl stop dashy +sleep 1 echo -e "${CM}${CL} \r" echo -en "${GN} Backup Data... " cp -R /dashy/public public-backup +sleep 1 echo -e "${CM}${CL} \r" echo -en "${GN} Updating Dashy... " cd /dashy -git merge -git pull origin master -yarn -yarn build +git merge &>/dev/null +git pull origin master &>/dev/null +yarn &>/dev/null +yarn build &>/dev/null echo -e "${CM}${CL} \r" echo -en "${GN} Restoring Data... " -cp -R public-backup/* /dashy/public +cd ~ +cp -R public-backup /dashy/public +sleep 1 echo -e "${CM}${CL} \r" echo -en "${GN} Cleaning... " rm -rf public-backup +sleep 1 echo -e "${CM}${CL} \r" echo -en "${GN} Starting Dashy... " systemctl start dashy +sleep 1 echo -e "${CM}${CL} \r" echo -e "${GN} Finished ${CL}\n"