summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Stankiewicz <sheerun@sher.pl>2013-09-16 17:46:24 +0200
committerAdam Stankiewicz <sheerun@sher.pl>2013-09-16 17:46:24 +0200
commitff3cc42bf3ef067324364b5a40f2e457d202588c (patch)
tree37a1619b8141d42cfa22c425912792251b0bbdd1
parente69f9f91d9c78f9055d992f83ef15904948b0fdb (diff)
downloadvim-polyglot-ff3cc42bf3ef067324364b5a40f2e457d202588c.tar.gz
vim-polyglot-ff3cc42bf3ef067324364b5a40f2e457d202588c.zip
Minor cleanup in build file
-rwxr-xr-xbuild5
1 files changed, 1 insertions, 4 deletions
diff --git a/build b/build
index 5b449ad0..1d5e8629 100755
--- a/build
+++ b/build
@@ -4,8 +4,6 @@ set -E
DIRS="syntax indent compiler autoload ftplugin ftdetect after/syntax after/indent after/ftplugin after/ftdetect"
-# Fetches syntax files from given Github repo
-
download() {
for pack in $1; do
path="$(printf "$pack" | cut -d ':' -f 2)"
@@ -25,7 +23,6 @@ extract() {
dir="tmp/$(printf "$path" | cut -d '/' -f 2)"
printf -- "- [$name](https://github.com/$path) ("
- # which tree > /dev/null && tree tmp
subdirs=""
for subdir in $DIRS; do
if [ -d "$dir/$subdir" ]; then
@@ -104,7 +101,7 @@ PACKS="
rm -rf tmp
rm -rf $DIRS
-mkdir -p tmp
+mkdir tmp
printf "Downloading packs..."
download "$PACKS"