Skip to content

Commit 1e07593

Browse files
authored
fix #165 create dir before wget
1 parent 05dadaf commit 1e07593

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

install.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ function main() {
3939
echo "[1/3] Downloading ${url}"
4040
rm -f "${dest_file}"
4141
if [ -x "$(command -v wget)" ]; then
42+
mkdir -p "${HOME}/.g/downloads"
4243
wget -q -P "${HOME}/.g/downloads" "${url}"
4344
else
4445
curl -s -S -L --create-dirs -o "${dest_file}" "${url}"

0 commit comments

Comments
 (0)