Skip to content

Commit

Permalink
use wrapperDir instead of wrapper_bin for wrapper templates
Browse files Browse the repository at this point in the history
Signed-off-by: vsoch <[email protected]>
  • Loading branch information
vsoch committed Sep 11, 2023
1 parent bf3fef0 commit 91b332d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions shpc/main/wrappers/templates/bases/shell-script-base.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!{{ settings.wrapper_shell }}

{% if '/csh' in settings.wrapper_shell %}set {% endif %}script=`realpath $0`
{% if '/csh' in settings.wrapper_shell %}set {% endif %}wrapper_bin={% if settings.wrapper_base %}"{{ wrapper_dir }}"{% else %}`dirname $script`{% endif %}
{% if '/csh' in settings.wrapper_shell %}set {% endif %}moduleDir=`dirname $wrapper_bin`
{% if '/csh' in settings.wrapper_shell %}set {% endif %}wrapperDir={% if settings.wrapper_base %}"{{ wrapper_dir }}"{% else %}`dirname $script`{% endif %}
{% if '/csh' in settings.wrapper_shell %}set {% endif %}moduleDir=`dirname $wrapperDir`

{% block content %}{% endblock %}

0 comments on commit 91b332d

Please sign in to comment.