From 0e557675554392721097a060efb185eaa6b3f072 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kim=20=E9=87=91=E5=8F=AF=E6=98=8E?= Date: Sat, 17 Oct 2020 02:59:37 +0800 Subject: [PATCH] fix: add extensions to ensure dirname commands works --- autoload/doge.vim | 2 +- package.json | 2 +- run-tests | 4 ++-- scripts/{build => build.sh} | 0 scripts/{install => install.sh} | 0 scripts/{run-vader-tests => run-vader-tests.sh} | 0 scripts/{run-vint => run-vint.sh} | 0 7 files changed, 4 insertions(+), 4 deletions(-) rename scripts/{build => build.sh} (100%) rename scripts/{install => install.sh} (100%) rename scripts/{run-vader-tests => run-vader-tests.sh} (100%) rename scripts/{run-vint => run-vint.sh} (100%) diff --git a/autoload/doge.vim b/autoload/doge.vim index e9f864ee..c1135948 100644 --- a/autoload/doge.vim +++ b/autoload/doge.vim @@ -181,7 +181,7 @@ endfunction "" @public " Install the necessary dependencies. function! doge#install() abort - call execute('!' . g:doge_dir . '/scripts/install') + call execute('!' . g:doge_dir . '/scripts/install.sh') endfunction let &cpoptions = s:save_cpo diff --git a/package.json b/package.json index d8028e53..6ce08909 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,7 @@ "prebuild": "rimraf dist", "watch": "tsc -p tsconfig.json --watch true --sourceMap", "build": "tsc -p tsconfig.json", - "build:binary": "npm run prebuild && ncc build ./src/index.ts -m -o dist && ./scripts/build", + "build:binary": "npm run prebuild && ncc build ./src/index.ts -m -o dist && ./scripts/build.sh", "lint": "eslint \"src/**/*.ts\" --fix", "format": "prettier --write \"src/**/*.ts\"" }, diff --git a/run-tests b/run-tests index 4ccec76f..ce9eb62a 100755 --- a/run-tests +++ b/run-tests @@ -200,7 +200,7 @@ for vim in $(docker run --rm $DOGE_DOCKER_IMAGE ls /vim-build/bin | grep '^neovi || ( [[ $vim =~ ^neovim-v0.4 ]] && ((run_neovim_04_tests)) ); then echo "Starting Vim: $vim..." file_number=$((file_number+1)) - scripts/run-vader-tests $verbose_flag "$vim" "$tests" > "$output_dir/$file_number" 2>&1 & + scripts/run-vader-tests.sh $verbose_flag "$vim" "$tests" > "$output_dir/$file_number" 2>&1 & pid_list="$pid_list $!" fi done @@ -208,7 +208,7 @@ done if ((run_linter)); then echo "Starting Vint..." file_number=$((file_number+1)) - scripts/run-vint > "$output_dir/$file_number" 2>&1 & + scripts/run-vint.sh > "$output_dir/$file_number" 2>&1 & pid_list="$pid_list $!" fi diff --git a/scripts/build b/scripts/build.sh similarity index 100% rename from scripts/build rename to scripts/build.sh diff --git a/scripts/install b/scripts/install.sh similarity index 100% rename from scripts/install rename to scripts/install.sh diff --git a/scripts/run-vader-tests b/scripts/run-vader-tests.sh similarity index 100% rename from scripts/run-vader-tests rename to scripts/run-vader-tests.sh diff --git a/scripts/run-vint b/scripts/run-vint.sh similarity index 100% rename from scripts/run-vint rename to scripts/run-vint.sh