Skip to content

Commit 7f0e1b8

Browse files
author
Thiago Perrotta
authored
make a few script improvements (#414)
1 parent a81ced6 commit 7f0e1b8

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

scripts/build.sh

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
1-
#! /bin/bash
1+
#!/bin/bash
22
set -ex
33

4-
SCRIPT_DIR=$(cd $(dirname "$0") && pwd -P)
5-
ROOT=$(dirname $SCRIPT_DIR)
6-
74
if ! [ -x "$(command -v bikeshed)" ] || [ "$1" = "--upgrade" ]; then
85
echo 'Installing bikeshed'
96
pip install bikeshed

scripts/test.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
#! /bin/bash
1+
#!/bin/bash
22
set -ex
33

4-
SCRIPT_DIR=$(cd $(dirname "$0") && pwd -P)
5-
ROOT=$(dirname $SCRIPT_DIR)
4+
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd -P)"
5+
ROOT="$(dirname "$SCRIPT_DIR")"
66

77
if ! [ -x "$(command -v cddl)" ] || [ "$1" = "--upgrade" ]; then
88
echo 'Installing cddl'
@@ -15,7 +15,7 @@ if [[ "$(npm list parse5)" =~ "empty" ]] || [ "$1" = "--upgrade" ]; then
1515
fi
1616

1717
# Extract CDDL content from spec into files
18-
$ROOT/scripts/cddl/generate.js
18+
"$ROOT"/scripts/cddl/generate.js
1919

2020
cddl compile-cddl --cddl local.cddl
2121
cddl compile-cddl --cddl remote.cddl

0 commit comments

Comments
 (0)