Skip to content

Commit

Permalink
Stop edge installer on error
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Ellis (OpenFaaS Ltd) <[email protected]>
  • Loading branch information
alexellis committed Sep 25, 2024
1 parent bd0e1d7 commit c2b802c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions hack/install-edge.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#!/bin/bash

set -e # stop on error
set -o pipefail


if [ "$EUID" -ne 0 ]; then
echo "Please run as root or with sudo"
exit
Expand Down

0 comments on commit c2b802c

Please sign in to comment.