mirror of
https://github.com/weechat/weechat.git
synced 2026-06-27 05:16:38 +02:00
core: replace "-o" by "||" in tools scripts
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user