add gitignore and the apps folder
This commit is contained in:
parent
3166829e4f
commit
56749ef791
2 changed files with 5 additions and 0 deletions
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
/apps/
|
|
@ -2,6 +2,8 @@
|
|||
|
||||
#set -eu -o pipefail
|
||||
|
||||
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
|
||||
APPS_DIR="$SCRIPT_DIR""/apps"
|
||||
URLS="$(\
|
||||
curl -s https://api.github.com/repos/neovim/neovim/releases/latest |
|
||||
grep -o 'https://.*linux64\.tar\.gz')\n"
|
||||
|
@ -12,6 +14,7 @@ printf ">> Found the following files:\n"
|
|||
printf "$URLS"
|
||||
printf "\n"
|
||||
|
||||
cd "$APPS_DIR"
|
||||
printf ">> Downloading files:\n"
|
||||
printf "$URLS" | xargs curl -LJO --progress-bar
|
||||
printf "\n"
|
||||
|
@ -22,3 +25,4 @@ printf "done\n\n"
|
|||
|
||||
printf ">> Removing files:\n"
|
||||
printf "$FILENAMES" | xargs rm -v
|
||||
cd - > /dev/null
|
||||
|
|
Loading…
Add table
Reference in a new issue