From 3ffd42958c4d5656a9522b701d855206a3b0b331 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Thu, 27 Jun 2019 20:56:05 +0200 Subject: Added progress bar --- install.sh | 7 ++++++- test.sh | 6 ------ 2 files changed, 6 insertions(+), 7 deletions(-) delete mode 100644 test.sh diff --git a/install.sh b/install.sh index 4dadcbb..903a574 100644 --- a/install.sh +++ b/install.sh @@ -7,7 +7,12 @@ sudo mkdir -p /home/melvix/os sudo cp -r boot etc /home/melvix/os sudo chown -R melvix /home/melvix sudo cp bootstrap.sh /home/melvix -sudo -i -u melvix bash bootstrap.sh ${source} + +echo "Compiling and packaging Melvix..." +while :;do for s in / - \\ \|; do printf "\r$s";sleep .1;done;done & +trap "kill $!" EXIT +sudo -i -u melvix bash bootstrap.sh ${source} &> /dev/null +kill $! && trap " " EXIT export MELVIX=/home/melvix/os find ${MELVIX}-copy/{,usr/}{bin,lib,sbin} -type f -exec sudo strip --strip-debug '{}' ';' diff --git a/test.sh b/test.sh deleted file mode 100644 index c362b35..0000000 --- a/test.sh +++ /dev/null @@ -1,6 +0,0 @@ -sudo -i -u lfs bash << AWESOMEENDINGLINE -whoami -echo $(pwd) -AWESOMEENDINGLINE -whoami -echo $(pwd) -- cgit v1.2.3