add gitignore and the apps folder

This commit is contained in:
Ranomier 2021-04-28 13:22:47 +02:00
parent 3166829e4f
commit 56749ef791
2 changed files with 5 additions and 0 deletions

1
.gitignore vendored Normal file
View file

@ -0,0 +1 @@
/apps/

View file

@ -2,6 +2,8 @@
#set -eu -o pipefail #set -eu -o pipefail
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
APPS_DIR="$SCRIPT_DIR""/apps"
URLS="$(\ URLS="$(\
curl -s https://api.github.com/repos/neovim/neovim/releases/latest | curl -s https://api.github.com/repos/neovim/neovim/releases/latest |
grep -o 'https://.*linux64\.tar\.gz')\n" grep -o 'https://.*linux64\.tar\.gz')\n"
@ -12,6 +14,7 @@ printf ">> Found the following files:\n"
printf "$URLS" printf "$URLS"
printf "\n" printf "\n"
cd "$APPS_DIR"
printf ">> Downloading files:\n" printf ">> Downloading files:\n"
printf "$URLS" | xargs curl -LJO --progress-bar printf "$URLS" | xargs curl -LJO --progress-bar
printf "\n" printf "\n"
@ -22,3 +25,4 @@ printf "done\n\n"
printf ">> Removing files:\n" printf ">> Removing files:\n"
printf "$FILENAMES" | xargs rm -v printf "$FILENAMES" | xargs rm -v
cd - > /dev/null