From f280ba75a5a0a3b3fe9815be544485b3d61b6bc6 Mon Sep 17 00:00:00 2001 From: Samuel Philipp Date: Sat, 6 Mar 2021 21:37:36 +0000 Subject: [PATCH] Update 'update-mods.sh' --- update-mods.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/update-mods.sh b/update-mods.sh index 316b68e..b9dbf37 100644 --- a/update-mods.sh +++ b/update-mods.sh @@ -9,12 +9,13 @@ while IFS="" read -r line || [ -n "$line" ] do IFS=' ' read -ra mod <<< "$line" echo "downloading ${mod[0]}" + sleep 1 wget -q "${mod[1]}" -O temp.zip echo "extracting ${mod[0]}" unzip -oq temp.zip -d temp rm -rf "$BASE/${mod[0]}/" mkdir -p "$BASE/${mod[0]}/" - if [[ $(find temp/* -maxdepth 0 -type d | wc -l) == 1 ]]; then + if [[ $(find temp/* -maxdepth 0 | wc -l) == 1 ]]; then cp -r temp/*/* "$BASE/${mod[0]}" else cp -r temp/* "$BASE/${mod[0]}"