From 6c9ef1ccaca1763d6a9e46c71ed9c67f6139c5bc Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Wed, 14 Jun 2017 16:11:08 +0200 Subject: remove bashisms - only "bash arrays" and "bash string substituions" left --- conf/default.conf | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'conf/default.conf') diff --git a/conf/default.conf b/conf/default.conf index 947196f..1f75bd9 100755 --- a/conf/default.conf +++ b/conf/default.conf @@ -6,7 +6,7 @@ set -e export LANG=C # dirty hack to get this stuff debugable from a bash -if [ "x$0" == "x-bash" ] || [ "x$0" == "xbash" ]; then +if [ "x$0" = "x-bash" ] || [ "x$0" = "xbash" ]; then base_dir="$(pwd)" else base_dir="$(dirname "$(readlink -f "$0")")/.." @@ -56,7 +56,7 @@ for repo in "${!repo_paths[@]}"; do mkdir -p "${repo_paths["${repo}"]%/*}" if [ ! -d "${repo_paths["${repo}"]}/.git" ]; then - if [ "${repo}" == "archlinux32" ]; then + if [ "${repo}" = "archlinux32" ]; then repo_source='git@github.com:archlinux32/packages.git' else repo_source="git://git.archlinux.org/svntogit/${repo}.git" @@ -66,7 +66,7 @@ for repo in "${!repo_paths[@]}"; do done -if [ "${master_build_server_identity}" == "${work_dir}/.ssh/id_rsa" ] && \ +if [ "${master_build_server_identity}" = "${work_dir}/.ssh/id_rsa" ] && \ [ ! -f "${master_build_server_identity}" ]; then mkdir -p "${master_build_server_identity%/*}" ssh-keygen -b4096 -f "${master_build_server_identity}" -- cgit v1.2.3-70-g09d2