core: replace "-o" by "||" in tools scripts

v2.8-utf8proc
Sébastien Helleu 2019-11-28 21:26:45 +01:00
parent a727516e0d
commit d2300e62af
2 changed files with 2 additions and 2 deletions

View File

@ -183,7 +183,7 @@ DISTRO_TYPE=$(expr "${DISTRO}" : '\([^/]*\)/') || true
# extract distro name (sid, jessie, wily, ...)
DISTRO_NAME=$(expr "${DISTRO}" : '[^/]*/\([a-z]*\)') || true
if [ -z "${DISTRO_TYPE}" -o -z "${DISTRO_NAME}" ]; then
if [ -z "${DISTRO_TYPE}" ] || [ -z "${DISTRO_NAME}" ]; then
error_usage "missing distro type/name"
fi

View File

@ -35,7 +35,7 @@
# check git repository
ROOT_DIR=$(git rev-parse --show-toplevel)
if [ -z "${ROOT_DIR}" -o ! -d "${ROOT_DIR}/.git" ]; then
if [ -z "${ROOT_DIR}" ] || [ ! -d "${ROOT_DIR}/.git" ]; then
echo "This script must be run from WeeChat git repository."
exit 1
fi