1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

fix(simple_make): correct variable initialization

This commit is contained in:
sudden6 2018-07-01 21:42:13 +02:00 committed by tox-user
parent 9ca3875079
commit 1537f83e85
No known key found for this signature in database
GPG Key ID: 7C132143C1A3A7D4

View File

@ -1,10 +1,10 @@
#!/usr/bin/env bash
set -eu -o pipefail
# additional flags for apt-get, used for CI
readonly APT_FLAGS='$1'
readonly WITHOUT_SQLCIPHER='$2'
readonly APT_FLAGS=$1
readonly WITHOUT_SQLCIPHER=$2
set -eu -o pipefail
apt_install() {
local apt_packages=(
@ -35,7 +35,7 @@ apt_install() {
)
if [ "$WITHOUT_SQLCIPHER" != "True" ]; then
apt_packages+=libsqlcipher-dev
apt_packages+=("libsqlcipher-dev")
fi
sudo apt-get install $APT_FLAGS "${apt_packages[@]}"