Skip to content
Snippets Groups Projects
Commit a0d9da36 authored by Whitney Armstrong's avatar Whitney Armstrong
Browse files

Version 2.2.1

parent fd8f666c
Branches
Tags v2.2.1
No related merge requests found
2.2.0
2.2.1
#!/usr/bin/env bash
## Boilerplate to make pipes work
piped_args=
if [ -p /dev/stdin ]; then
# If we want to read the input line by line
while IFS= read line; do
if [ -z "$piped_args" ]; then
piped_args="${line}"
else
piped_args="${piped_args}
${line}"
fi
done
fi
## Fire off the application wrapper
if [ ${piped_args} ] ; then
echo -e ${piped_args} | singularity exec /home/sjoosten/projects/eic_container/build/lib/eic.sif.2.0.4 eic-shell $@
else
singularity exec /home/sjoosten/projects/eic_container/build/lib/eic.sif.2.0.4 eic-shell $@
fi
#!/usr/bin/env bash
## Boilerplate to make pipes work
piped_args=
if [ -p /dev/stdin ]; then
# If we want to read the input line by line
while IFS= read line; do
if [ -z "$piped_args" ]; then
piped_args="${line}"
else
piped_args="${piped_args}
${line}"
fi
done
fi
## Fire off the application wrapper
if [ ${piped_args} ] ; then
echo -e ${piped_args} | singularity exec /home/sjoosten/projects/eic_container/build/lib/eic.sif.2.0.4 ipython $@
else
singularity exec /home/sjoosten/projects/eic_container/build/lib/eic.sif.2.0.4 ipython $@
fi
#!/usr/bin/env bash
## Boilerplate to make pipes work
piped_args=
if [ -p /dev/stdin ]; then
# If we want to read the input line by line
while IFS= read line; do
if [ -z "$piped_args" ]; then
piped_args="${line}"
else
piped_args="${piped_args}
${line}"
fi
done
fi
## Fire off the application wrapper
if [ ${piped_args} ] ; then
echo -e ${piped_args} | singularity exec /home/sjoosten/projects/eic_container/build/lib/eic.sif.2.0.4 root $@
else
singularity exec /home/sjoosten/projects/eic_container/build/lib/eic.sif.2.0.4 root $@
fi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment