diff options
Diffstat (limited to 'install_wget')
-rw-r--r-- | install_wget | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/install_wget b/install_wget new file mode 100644 index 0000000..f21bfa7 --- /dev/null +++ b/install_wget @@ -0,0 +1,10 @@ +#!/usr/bin/env bash + +find . -type f -name "*.wget" | \ + while read -r file; do + destination=$HOME/$(echo "${file%.*}" | sed 's#\./[^/]*/##') + wget "$(cat "$file")" -O "$destination" + if [[ "$file" == ./bin/* ]]; then + chmod +x "$destination" + fi + done && echo "Installation successful" |