Kaydet (Commit) 954e4dc9 authored tarafından Markus Mohrhard's avatar Markus Mohrhard

updater: check that access to mandatory externals is working

Change-Id: Ica68488f4e39c958a913936573cee67c1ff69175
Reviewed-on: https://gerrit.libreoffice.org/40754Reviewed-by: 's avatarMarkus Mohrhard <markus.mohrhard@googlemail.com>
Tested-by: 's avatarMarkus Mohrhard <markus.mohrhard@googlemail.com>
üst 71b0d8b8
......@@ -26,6 +26,23 @@ get_file_size() {
echo ${info[4]}
}
check_externals() {
# check whether we can call the mar executable
"$MAR" --version > /dev/null 2>&1
if [ $? != 0 ]; then
notice "Could not find a valid mar executable in the path or in the MAR environment variable"
exit 1
fi
# check whether we can access the bzip2 executable
"$BZIP2" --help > /dev/null 2>&1
if [ $? != 0 ]; then
notice "Could not find a valid bzip2 executable in the PATH or in the BZIP2 environment variable"
exit 1
fi
}
copy_perm() {
reference="$1"
target="$2"
......
......@@ -32,6 +32,7 @@ if [ $1 = -h ]; then
exit 1
fi
check_externals
# -----------------------------------------------------------------------------
archive="$1"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment