Skip to content

Commit bedc02d

Browse files
committed
feat(check-diff): POSIX compliance
Signed-off-by: Francesco Noacco <francesco.noacco@secomind.com>
1 parent e0a2f54 commit bedc02d

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

scripts/check-diff.sh

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
1-
#! /usr/bin/env bash
1+
#!/bin/sh
22

33
# Copyright 2023 SECO Mind Srl
44
# SPDX-License-Identifier: Apache-2.0
55

6-
set -exEuo pipefail
6+
set -exu
77

8-
DIFF=$(git diff --exit-code)
9-
10-
if [[ "$?" != 0 ]] ; then
8+
if ! DIFF=$(git diff --exit-code)
9+
then
1110
echo "differences between the generated files" >&2
1211
echo "$DIFF"
1312
exit 1

0 commit comments

Comments
 (0)