core: replace "-o" by "||" in tools scripts
This commit is contained in:
parent
a727516e0d
commit
d2300e62af
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user