Moved postBuild comment into the condition.
MODIFY
repo2docker/buildpacks/base.py
repo2docker/buildpacks/base.py
@@ -142,8 +142,8 @@ LABEL {{k}}="{{v}}"
# We always want containers to run as non-root
USER ${NB_USER}
-# Make sure that postBuild scripts are marked executable before executing them
{% if post_build_scripts -%}
+# Make sure that postBuild scripts are marked executable before executing them
{% for s in post_build_scripts -%}
RUN chmod +x {{ s }}
RUN ./{{ s }}

Moved postBuild comment into the condition.