summaryrefslogtreecommitdiff
path: root/install_wget
diff options
context:
space:
mode:
Diffstat (limited to 'install_wget')
-rw-r--r--install_wget3
1 files changed, 2 insertions, 1 deletions
diff --git a/install_wget b/install_wget
index f21bfa7..4800e8d 100644
--- a/install_wget
+++ b/install_wget
@@ -2,7 +2,8 @@
find . -type f -name "*.wget" | \
while read -r file; do
- destination=$HOME/$(echo "${file%.*}" | sed 's#\./[^/]*/##')
+ destination=$HOME/$(echo "${file%.*}" | sed 's#\./[^/]*/##')
+ mkdir -p "$(dirname "$destination")"
wget "$(cat "$file")" -O "$destination"
if [[ "$file" == ./bin/* ]]; then
chmod +x "$destination"