aboutsummaryrefslogtreecommitdiff
path: root/test/data/app-a/hooks/pre-install
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2013-11-01 16:24:26 +0100
committerTrygve Laugstøl <trygvis@inamo.no>2013-11-01 19:58:08 +0100
commitba7820b18c0ee8631505f7a2a764f7222a732d44 (patch)
tree82bc1d530e1f815e8d8687fa642dd5c84a59c114 /test/data/app-a/hooks/pre-install
parent93e2978fbe5582440d79c47b5975659d9cbf701b (diff)
downloadapp.sh-ba7820b18c0ee8631505f7a2a764f7222a732d44.tar.gz
app.sh-ba7820b18c0ee8631505f7a2a764f7222a732d44.tar.bz2
app.sh-ba7820b18c0ee8631505f7a2a764f7222a732d44.tar.xz
app.sh-ba7820b18c0ee8631505f7a2a764f7222a732d44.zip
bin/app-upgrade: Removing unreachable code. Fixing it so it comparesv0.2-dev
against the currently installed version instead of the last resolved version which makes it possible to retry installation of the same version. libexec/app-install-file: Allowing installation of the same file twice. Checks if the file has been unpacked earlier or not. Removes the unpacked version on failure.
Diffstat (limited to 'test/data/app-a/hooks/pre-install')
-rwxr-xr-xtest/data/app-a/hooks/pre-install11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/data/app-a/hooks/pre-install b/test/data/app-a/hooks/pre-install
new file mode 100755
index 0000000..4b95ac4
--- /dev/null
+++ b/test/data/app-a/hooks/pre-install
@@ -0,0 +1,11 @@
+#!/bin/bash -e
+
+set -u
+
+echo "pre-install"
+
+if [[ -e $APP_HOME/fail-pre-install ]]
+then
+ echo "Simulating failure."
+ exit 1
+fi