From 6716e1b213d8108dac86d688f17016faa7f03c1a Mon Sep 17 00:00:00 2001 From: xengineering Date: Thu, 14 Nov 2019 19:36:03 +0100 Subject: Improved code readability and avoided output redirect to /dev/null. --- archinstall.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'archinstall.sh') diff --git a/archinstall.sh b/archinstall.sh index e764b4c..025f318 100644 --- a/archinstall.sh +++ b/archinstall.sh @@ -60,7 +60,7 @@ DELAY=0.5 # delay for reading messages in seconds # Check internet connection -if ping -w $NETWORK_DEADLINE -c 1 $TESTSERVER > /dev/null; then +if ping -w $NETWORK_DEADLINE -c 1 $TESTSERVER; then echo "Internet connection is ready - OK" echo "" sleep $DELAY @@ -72,7 +72,7 @@ fi # Update the system clock -timedatectl set-ntp true > /dev/null +timedatectl set-ntp true if [ $? -eq 0 ]; then echo "Updated system clock - OK" echo "" @@ -95,6 +95,7 @@ git clone $REPOSITORY_URL $REPOSITORY_PATH cd $REPOSITORY_PATH git checkout $BRANCH_OR_COMMIT cd + echo "Git repository cloned - OK" echo "" sleep $DELAY @@ -102,4 +103,5 @@ sleep $DELAY # Launching first stage -bash $REPOSITORY_PATH/bin/first_stage.sh $DELAY $REPOSITORY_PATH $LOG_FILE_PATH | tee -a $LOG_FILE_PATH +bash $REPOSITORY_PATH/bin/first_stage.sh \ +$DELAY $REPOSITORY_PATH $LOG_FILE_PATH | tee -a $LOG_FILE_PATH -- cgit v1.2.3-70-g09d2