diff options
author | Martin Nowack <m.nowack@imperial.ac.uk> | 2022-03-25 22:57:31 +0000 |
---|---|---|
committer | Cristian Cadar <c.cadar@imperial.ac.uk> | 2022-03-30 12:18:59 +0100 |
commit | 818275b7249250780ddd5ed021cae64288514270 (patch) | |
tree | 9ed884e1db33bb33ce992dc6afeaff75ee85f81b /scripts/build/p-z3-linux-ubuntu.inc | |
parent | 71c1c45fe266d73e307f422f09f2afdc41c70ec3 (diff) | |
download | klee-818275b7249250780ddd5ed021cae64288514270.tar.gz |
Add support to `sudo` if necessary
Instead if executing system-relevant changes directly, use `sudo` on Ubuntu-based machines. Simplifies the installation procedure.
Diffstat (limited to 'scripts/build/p-z3-linux-ubuntu.inc')
-rw-r--r-- | scripts/build/p-z3-linux-ubuntu.inc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/scripts/build/p-z3-linux-ubuntu.inc b/scripts/build/p-z3-linux-ubuntu.inc index 2a46ac46..41130232 100644 --- a/scripts/build/p-z3-linux-ubuntu.inc +++ b/scripts/build/p-z3-linux-ubuntu.inc @@ -1,6 +1,7 @@ # Build dependencies Z3 -install_build_dependencies_z3() { - apt update -y +install_build_dependencies_z3() { + source "${DIR}/common-functions" + with_sudo apt update -y dependencies=( build-essential @@ -11,5 +12,5 @@ install_build_dependencies_z3() { ) #Install essential dependencies - apt -y --no-install-recommends install "${dependencies[@]}" + with_sudo apt -y --no-install-recommends install "${dependencies[@]}" } \ No newline at end of file |