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:
parent
9ca3875079
commit
1537f83e85
@ -1,10 +1,10 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
set -eu -o pipefail
|
|
||||||
|
|
||||||
# additional flags for apt-get, used for CI
|
# additional flags for apt-get, used for CI
|
||||||
readonly APT_FLAGS='$1'
|
readonly APT_FLAGS=$1
|
||||||
readonly WITHOUT_SQLCIPHER='$2'
|
readonly WITHOUT_SQLCIPHER=$2
|
||||||
|
|
||||||
|
set -eu -o pipefail
|
||||||
|
|
||||||
apt_install() {
|
apt_install() {
|
||||||
local apt_packages=(
|
local apt_packages=(
|
||||||
@ -35,7 +35,7 @@ apt_install() {
|
|||||||
)
|
)
|
||||||
|
|
||||||
if [ "$WITHOUT_SQLCIPHER" != "True" ]; then
|
if [ "$WITHOUT_SQLCIPHER" != "True" ]; then
|
||||||
apt_packages+=libsqlcipher-dev
|
apt_packages+=("libsqlcipher-dev")
|
||||||
fi
|
fi
|
||||||
|
|
||||||
sudo apt-get install $APT_FLAGS "${apt_packages[@]}"
|
sudo apt-get install $APT_FLAGS "${apt_packages[@]}"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user