From 8d2ec0ce02324958fba9eec8a4041e292e7efe4e Mon Sep 17 00:00:00 2001 From: ashley zomo Date: Thu, 27 Jan 2022 19:57:59 -0600 Subject: [PATCH] updated bash scripts --- scripts/mac-linux/install | 3 ++- scripts/mac-linux/start | 13 +++++++++++-- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/scripts/mac-linux/install b/scripts/mac-linux/install index dd57fe3..38e3642 100755 --- a/scripts/mac-linux/install +++ b/scripts/mac-linux/install @@ -1,5 +1,6 @@ #!/usr/bin/env bash -cd $( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) +cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" cd ../.. + npm install \ No newline at end of file diff --git a/scripts/mac-linux/start b/scripts/mac-linux/start index c99b1e8..b85d758 100755 --- a/scripts/mac-linux/start +++ b/scripts/mac-linux/start @@ -1,5 +1,14 @@ #!/usr/bin/env bash -cd $( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) +C1='\033[1;37m' +C2='\033[1;33m' +NC='\033[0m' + +cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" cd ../.. -npm start \ No newline at end of file + +while true; do + npm start + printf "\n\n\n${C1}press ${C2}Control+C${C1} to close${NC}\n\n\n" + sleep 5 +done \ No newline at end of file