summaryrefslogtreecommitdiff
path: root/install_wget
diff options
context:
space:
mode:
authorUrbain Vaes <urbain@vaes.uk>2018-11-23 00:10:14 +0100
committerUrbain Vaes <urbain@vaes.uk>2018-11-23 00:10:14 +0100
commit0a7b766e67fade604569fe9fe512fbb4f70c4d72 (patch)
treec79e492fe4b7411f5eda417c6d81f6130ff9931e /install_wget
parenteb9765c374b2b53dd2f8e7c4b1bec9107386acf7 (diff)
[vim] Use legacy branch of iron.nvim
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"