Skip to content

Commit

Permalink
Fixed wrong Logic about verbose
Browse files Browse the repository at this point in the history
  • Loading branch information
heinthanth committed Nov 15, 2020
1 parent 6faa832 commit 04cb5c6
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions creator.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ set -e

# GLOBAL variables
MACOS_VERSION="catalina" # supported: "highsierra", "mojave", "catalina". "bigsur" coming soon!
TARGET_DISK="" # warning ... the whole disk will be formatted.
TARGET_DISK="" # warning ... the whole disk will be formatted.

# utils
red="\e[31m"
Expand All @@ -22,15 +22,15 @@ VERSION_STRING=""
HTTP_CLIENT="aria2c" # recommended
VERBOSE_MODE=true

CURL_OPTION="-L -s"
ARIA2_OPTION="--quiet=true -x 5"
DISKUTIL_OPTION="quiet"
CURL_OPTION="-L"
ARIA2_OPTION="-x 5"
DISKUTIL_OPTION=""

if [[ $1 == "--verbose" ]]; then
VERBOSE_MODE=true
CURL_OPTION="-L"
ARIA2_OPTION="-x 5"
DISKUTIL_OPTION=""
if [[ $1 == "--quiet" ]]; then
VERBOSE_MODE=false
CURL_OPTION="-L -s"
ARIA2_OPTION="--quiet=true -x 5"
DISKUTIL_OPTION="quiet"
fi

disksize=$(diskutil info $TARGET_DISK | grep "Disk Size" | awk '{ print $3 }')
Expand Down

0 comments on commit 04cb5c6

Please sign in to comment.