feat: only progress bar

display only progress while downloading.
This commit is contained in:
Mayur Raut
2024-08-13 15:32:35 +05:30
parent 38c3bc06f5
commit 426d1431e5

View File

@@ -149,7 +149,7 @@ installDepend() {
# check if the file is accessible
if wget -q --spider "$FONT_URL"; then
TEMP_DIR=$(mktemp -d)
wget $FONT_URL -O "$TEMP_DIR"/"${FONT_NAME}".zip
wget -q --show-progress $FONT_URL -O "$TEMP_DIR"/"${FONT_NAME}".zip
unzip "$TEMP_DIR"/"${FONT_NAME}".zip -d "$TEMP_DIR"
mkdir -p "$FONT_DIR"/"$FONT_NAME"
mv "${TEMP_DIR}"/*.ttf "$FONT_DIR"/"$FONT_NAME"