Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion resources/apply_format.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
#
set -e

if [ -z "$SELFDIR" ];
if [[ -z "$SELFDIR" ]];
then
echo "SELFDIR not defined"
exit 1
Expand Down
2 changes: 1 addition & 1 deletion resources/apply_license.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
#
set -e

if [ -z "$SELFDIR" ];
if [[ -z "$SELFDIR" ]];
then
echo "SELFDIR not defined"
exit 1
Expand Down
4 changes: 2 additions & 2 deletions resources/check_format.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
##
set -e

if [ -z "$SELFDIR" ];
if [[ -z "$SELFDIR" ]];
then
echo "$SELFDIR not defined"
exit 1
Expand All @@ -36,7 +36,7 @@ echo "Check format from root: $SELFDIR"
./resources/apply_license.sh

changed=$(git status --porcelain=1)
if [ -n "${changed}" ]; then
if [[ -n "${changed}" ]]; then
echo "Error: Files changed after formatting:"
git diff
exit 1
Expand Down
8 changes: 4 additions & 4 deletions resources/deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
#
set -e

if [ -z "$SELFDIR" ]
if [[ -z "$SELFDIR" ]]
then
echo "SELFDIR not defined"
exit 1
Expand All @@ -42,7 +42,7 @@ mkdir -p ${BUILDDIR}

# Note: This checks for existence of qcbor, and if exists
# then skips rebuilding it.
if [ ! -e ${DESTDIR}${PREFIX}/include/qcbor ]
if [[ ! -e ${DESTDIR}${PREFIX}/include/qcbor ]]
then
echo "Building QCBOR..."
pushd ${DEPSDIR}/QCBOR
Expand All @@ -59,7 +59,7 @@ fi

# Note: This checks for existence of this path, skips building
# if already exists.
if [ ! -e ${DESTDIR}${PREFIX}/include/m-lib ]
if [[ ! -e ${DESTDIR}${PREFIX}/include/m-lib ]]
then
echo "Building MLIB..."
rsync --recursive ${DEPSDIR}/mlib/ ${BUILDDIR}/mlib/
Expand All @@ -73,7 +73,7 @@ fi


# Note: Skips building unity if this path already exists.
if [ ! -e ${DESTDIR}${PREFIX}/include/unity ]
if [[ ! -e ${DESTDIR}${PREFIX}/include/unity ]]
then
echo "Building Unity..."
pushd ${DEPSDIR}/unity
Expand Down
2 changes: 1 addition & 1 deletion resources/prep.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
#
set -e

if [ -z "$SELFDIR" ]
if [[ -z "$SELFDIR" ]]
then
echo "SELFDIR not defined"
exit 1
Expand Down
Loading