Skip to content

Commit

Permalink
packrootfs: add "set -e"
Browse files Browse the repository at this point in the history
Signed-off-by: Bill Nguyen <[email protected]>
  • Loading branch information
dreamliner787-9 committed Dec 4, 2024
1 parent 80aab3b commit 4eb4caf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tools/packrootfs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/bin/bash

set -e

# Copyright 2024, UNSW
#
# SPDX-License-Identifier: BSD-2-Clause
Expand All @@ -11,7 +13,7 @@ fi

which cpio >/dev/null
if [ "$?" != 0 ]; then
echo "packrootfs: Please install CPIO"
echo "packrootfs: Please install cpio utility."
exit 1
fi

Expand Down

0 comments on commit 4eb4caf

Please sign in to comment.