Skip to content

Commit 6ec0aaa

Browse files
committed
Prefer more common shorthand over "test" command
1 parent 4533577 commit 6ec0aaa

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
"dna-dom": "~3.3",
7979
"hamburger-menu": "~0.7",
8080
"jshint": "~2.13",
81-
"less": "~4.5",
81+
"less": "~4.6",
8282
"mocha": "~11.7",
8383
"replacer-util": "~1.6",
8484
"rev-web-assets": "~1.5",

tools/build-website.sh.command

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ setupTools() {
2222
echo $banner
2323
echo $(echo $banner | sed s/./=/g)
2424
pwd
25-
test -d .git || { echo "Project must be in a git repository."; exit; }
26-
git restore dist/* &>/dev/null
25+
[ -d .git ] || { echo "Project must be in a git repository."; exit; }
26+
[ -d dist ] && git restore dist
2727
git pull --ff-only
2828
echo
2929
echo "Node.js:"
@@ -59,9 +59,9 @@ publishWebFiles() {
5959
cp -R website-target/3-prod/* $publishFolder
6060
cp $publishSite/files/resources/404-source.html $publishFolder/404.html
6161
ls -p $publishFolder | grep --invert-match /
62-
test -x "$(which tree)" && tree $publishFolder
62+
[ -x "$(which tree)" ] && tree $publishFolder
6363
}
64-
test -w $publishSite && publish
64+
[ -w $publishSite ] && publish
6565
}
6666

6767
interactiveServer() {

tools/static-analysis.sh.command

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ setupPmd() {
3737
ls -o
3838
rm $pmdZipFile
3939
}
40-
test -d $pmdFolder || downloadPmd
40+
[ -d $pmdFolder ] || downloadPmd
4141
echo
4242
}
4343

0 commit comments

Comments
 (0)