summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/iexec/iexec.sty
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/iexec/iexec.sty')
-rw-r--r--macros/latex/contrib/iexec/iexec.sty9
1 files changed, 6 insertions, 3 deletions
diff --git a/macros/latex/contrib/iexec/iexec.sty b/macros/latex/contrib/iexec/iexec.sty
index 34898e324c..2f8cd15bb0 100644
--- a/macros/latex/contrib/iexec/iexec.sty
+++ b/macros/latex/contrib/iexec/iexec.sty
@@ -21,7 +21,7 @@
% SOFTWARE.
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{iexec}[2021/07/12 0.3.1 Inputable Shell Executions]
+\ProvidesPackage{iexec}[2021/08/01 0.4.0 Inputable Shell Executions]
\RequirePackage{shellesc}
@@ -30,7 +30,10 @@
\DeclareOptionX{trace}{\tracetrue}
\ProcessOptionsX\relax
-\makeatletter\newcommand\iexec[2][iexec.tmp]{%
+\newcommand\iexec[2][iexec.tmp]{%
+ \ifnum\pdfshellescape=1\else
+ \PackageError{iexec}{You must run latex with --shell-escape option}{}
+ \fi
\begingroup%
\let\%\@percentchar%
\let\\\@backslashchar%
@@ -41,6 +44,6 @@
\endgroup%
\input{#1}%
\iftrace\else\ShellEscape{rm #1}\fi%
-}\makeatother
+}
\endinput