ci: copy Saxon license when file variable is readable (-r)
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 1c238b9..779e1af 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -28,7 +28,7 @@
- source `find .. -name section_helper.sh`
- mkdir -p "$SAXON_HOME"
- |
- if [ -n "$SAXON_LICENSE" ] && [ -f "$SAXON_LICENSE" ]; then
+ if [ -r "$SAXON_LICENSE" ]; then
cp "$SAXON_LICENSE" "$SAXON_HOME/saxon-license.lic"
fi
- start_section install_linux_packages "Installing missing Linux packages"
@@ -76,7 +76,7 @@
- source `find .. -name section_helper.sh`
- mkdir -p "$SAXON_HOME"
- |
- if [ -n "$SAXON_LICENSE" ] && [ -f "$SAXON_LICENSE" ]; then
+ if [ -r "$SAXON_LICENSE" ]; then
cp "$SAXON_LICENSE" "$SAXON_HOME/saxon-license.lic"
fi
- start_section install_linux_packages "Installing missing Linux packages"
@@ -124,7 +124,7 @@
- source `find .. -name section_helper.sh`
- mkdir -p "$SAXON_HOME"
- |
- if [ -n "$SAXON_LICENSE" ] && [ -f "$SAXON_LICENSE" ]; then
+ if [ -r "$SAXON_LICENSE" ]; then
cp "$SAXON_LICENSE" "$SAXON_HOME/saxon-license.lic"
fi
- start_section setup_ssh "Setting up SSH"