summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvgeny Zinoviev <me@ch1p.io>2022-07-11 03:02:06 +0300
committerEvgeny Zinoviev <me@ch1p.io>2022-07-11 03:02:06 +0300
commit2e4ee8694fb829acc2b57b4c95da40f7b773b0cb (patch)
tree295e731904386113d4a5e8fc896a27006f8d7110
parent864e73cdc75a2fb0e4fad500f649dae2343c10a8 (diff)
deploy.sh: add missing die() function
-rwxr-xr-xdeploy/deploy.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/deploy/deploy.sh b/deploy/deploy.sh
index 7ef28a3..95ff314 100755
--- a/deploy/deploy.sh
+++ b/deploy/deploy.sh
@@ -1,5 +1,10 @@
#!/bin/bash
+die() {
+ >&2 echo "error: $@"
+ exit 1
+}
+
set -e
DIR="$( cd "$( dirname "$(readlink -f "${BASH_SOURCE[0]}")" )" && pwd )"