aboutsummaryrefslogtreecommitdiffstats
path: root/gitolite-cgit
diff options
context:
space:
mode:
authorJesús <heckyel@hyperbola.info>2021-12-31 23:46:37 -0500
committerJesús <heckyel@hyperbola.info>2021-12-31 23:46:37 -0500
commit56fb3bb208d167d615c4ee5f175d9eb1f2e62bd3 (patch)
tree06d6fa1313e8ad7c910cb793416a47d0c7200417 /gitolite-cgit
parent25a57b557a76b681f2bff5dc7e799039b3f28268 (diff)
downloadgitolite-cgit-docker-56fb3bb208d167d615c4ee5f175d9eb1f2e62bd3.tar.lz
gitolite-cgit-docker-56fb3bb208d167d615c4ee5f175d9eb1f2e62bd3.tar.xz
gitolite-cgit-docker-56fb3bb208d167d615c4ee5f175d9eb1f2e62bd3.zip
Use -n instead of ! -z.
Diffstat (limited to 'gitolite-cgit')
-rw-r--r--gitolite-cgit/entrypoint.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/gitolite-cgit/entrypoint.sh b/gitolite-cgit/entrypoint.sh
index c1ec87f..d4becda 100644
--- a/gitolite-cgit/entrypoint.sh
+++ b/gitolite-cgit/entrypoint.sh
@@ -296,17 +296,17 @@ scan-path=/var/lib/git/repositories
EOF
# Append clone-prefix
- if [ ! -z "$CGIT_CLONE_PREFIX" ]; then
+ if [ -n "$CGIT_CLONE_PREFIX" ]; then
echo "# Specify some default clone prefixes" >> /etc/cgitrc
echo "clone-prefix=$CGIT_CLONE_PREFIX" >> /etc/cgitrc
fi
- if [ ! -z "$CGIT_ROOT_TITLE" ]; then
+ if [ -n "$CGIT_ROOT_TITLE" ]; then
echo "# Set the title and heading of the repository index page" >> /etc/cgitrc
echo "root-title=$CGIT_ROOT_TITLE" >> /etc/cgitrc
fi
- if [ ! -z "$CGIT_DESC" ]; then
+ if [ -n "$CGIT_DESC" ]; then
echo "# Set description repository" >> /etc/cgitrc
echo "root-desc=$CGIT_DESC" >> /etc/cgitrc
fi