diff --git a/share/fsl/sbin/update_fsl_package b/share/fsl/sbin/update_fsl_package
index 6769566cadcf1e20b3b6ab28dd242f610c949aa4..5dce9493c3aa30b2e93f5884392e9d7395504582 100755
--- a/share/fsl/sbin/update_fsl_package
+++ b/share/fsl/sbin/update_fsl_package
@@ -551,7 +551,7 @@ def install_packages(packages : Sequence[Package], dry_run : bool):
     # $FSLDIR/share/fsl/sbin/createFSLWrapper for
     # more details.
     env = os.environ.copy()
-    env['FSL_CREATE_WRAPPER_SCRIPTS'] = 1
+    env['FSL_CREATE_WRAPPER_SCRIPTS'] = '1'
 
     print('\nInstalling packages...')
     if dry_run: