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 authored and Ivan-Velickovic committed Dec 5, 2024
1 parent 46e6120 commit 7bc25c2
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 7bc25c2

Please sign in to comment.