summaryrefslogtreecommitdiff
path: root/type
diff options
context:
space:
mode:
authorDennis Camera <dennis.camera@ssrq-sds-fds.ch>2021-03-21 12:00:25 +0100
committerDennis Camera <dennis.camera@ssrq-sds-fds.ch>2021-03-21 17:41:35 +0100
commite499482a7d0584cc632ff1ab94a4438614b3425d (patch)
tree7791d20dff505d42edd1e4f08560ed89b978b065 /type
parent79e5350896cd9e24cb7ae5ca3dfd0ee01817b058 (diff)
download__dtnrch_egov-e499482a7d0584cc632ff1ab94a4438614b3425d.tar.gz
__dtnrch_egov-e499482a7d0584cc632ff1ab94a4438614b3425d.zip
[type/__dtnrch_etax_sgnp] Patch for installation directories with spaces
Diffstat (limited to 'type')
-rwxr-xr-xtype/__dtnrch_etax_sgnp/gencode-remote4
-rwxr-xr-xtype/__dtnrch_etax_sgnp/manifest5
2 files changed, 7 insertions, 2 deletions
diff --git a/type/__dtnrch_etax_sgnp/gencode-remote b/type/__dtnrch_etax_sgnp/gencode-remote
index a4898b1..7e91092 100755
--- a/type/__dtnrch_etax_sgnp/gencode-remote
+++ b/type/__dtnrch_etax_sgnp/gencode-remote
@@ -48,7 +48,9 @@ then
install_dir="${prefix}/${install_dir##*/}"
fi
-if grep -q "^__dtnrch_install4j${install_dir:?}:installed" "${__messages_in:?}"
+i4j_object_name=$(printf '%s\n' "${install_dir}" | tr ' ' '_')
+if grep -q "^__dtnrch_install4j${i4j_object_name}:installed" "${__messages_in:?}"
+
then
# Post-install routine
diff --git a/type/__dtnrch_etax_sgnp/manifest b/type/__dtnrch_etax_sgnp/manifest
index dd0b092..35a3b90 100755
--- a/type/__dtnrch_etax_sgnp/manifest
+++ b/type/__dtnrch_etax_sgnp/manifest
@@ -175,9 +175,12 @@ then
set -- "$@" --java-home "${jvm_path}"
fi
+i4j_object_name=$(printf '%s\n' "${install_dir}" | tr ' ' '_')
+
require="${require}${require32:+ }${require32-}" \
-__dtnrch_install4j "${install_dir}" \
+__dtnrch_install4j "${i4j_object_name}" \
--state "${state_should}" \
+ --install-dir "${install_dir}" \
--installer "${remote_file}" "$@"
if ${set_jre_symlink:-false}