Skip to content

Commit c2c9715

Browse files
authored
Merge pull request #166 from akkuman/patch-1
create dir before wget
2 parents d288968 + 1e07593 commit c2c9715

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)