mirror of https://github.com/bpkg/bpkg
refactor(): support 'commands' for 'bpkg run' and 'BPKG_SCRIPT_SOURCES' env var
parent
f0b5ee6ba7
commit
edaf0cab93
@ -1,20 +1,16 @@
|
||||
# shellcheck disable=SC2034
|
||||
|
||||
## Allow: To read lines rather than words, pipe/redirect to a 'while read' loop
|
||||
disable=SC2013
|
||||
|
||||
## Allow: Unsued variables
|
||||
disable=SC2034
|
||||
|
||||
## Allow: Double quote array expansions to avoid re-splitting elements
|
||||
disable=SC2068
|
||||
|
||||
## Allow: Declare and assign separately to avoid masking return values
|
||||
disable=SC2155
|
||||
|
||||
## Allow: Quote to prevent word splitting/globbing, or split robustly with mapfile or read -a.
|
||||
disable=SC2206
|
||||
|
||||
## Allow: Prefer mapfile or read -a to split command output (or quote to avoid splitting)
|
||||
disable=SC2207
|
||||
|
||||
## Allow: Instead of 'let expr', prefer (( expr ))
|
||||
disable=SC2219
|
||||
|
||||
## Allow: Not following source
|
||||
disable=SC1091
|
||||
|
@ -1,2 +0,0 @@
|
||||
test/errlog
|
||||
test/outlog
|
@ -1,30 +0,0 @@
|
||||
#! /usr/bin/env bash
|
||||
|
||||
cd "${0%/*}" || exit
|
||||
|
||||
#set -e
|
||||
fail=0
|
||||
tests=0
|
||||
#all_tests=${__dirname:}
|
||||
#echo PLAN ${#all_tests}
|
||||
for test in test/*.sh ;
|
||||
do
|
||||
tests=$((tests+1))
|
||||
echo TEST: "$test"
|
||||
./"$test"
|
||||
ret=$?
|
||||
if [ $ret -eq 0 ] ; then
|
||||
echo OK: ---- "$test"
|
||||
passed=$((passed+1))
|
||||
else
|
||||
echo FAIL: "$test" $fail
|
||||
fail=$((fail+ret))
|
||||
fi
|
||||
done
|
||||
|
||||
if [ $fail -eq 0 ]; then
|
||||
echo -n 'SUCCESS '
|
||||
else
|
||||
echo -n 'FAILURE '
|
||||
fi
|
||||
echo $passed / $tests
|
@ -1,14 +0,0 @@
|
||||
{ "name": "JSON.sh"
|
||||
, "version": "0.1.8"
|
||||
, "description": "JSON parser written in bash"
|
||||
, "homepage": "http://github.com/dominictarr/JSON.sh"
|
||||
, "repository":
|
||||
{ "type": "git"
|
||||
, "url": "https://github.com/dominictarr/JSON.sh.git" }
|
||||
, "bin": {
|
||||
"JSON.sh": "./JSON.sh"
|
||||
}
|
||||
, "dependencies": {}
|
||||
, "devDependencies": {}
|
||||
, "author": "Dominic Tarr <dominic.tarr@gmail.com> (http://bit.ly/dominictarr)"
|
||||
, "scripts": { "test": "./all-tests.sh" } }
|
Loading…
Reference in New Issue