Skip to content
Snippets Groups Projects

Resolve "Move module load into nextflow process"

Merged Jeremy Mathews requested to merge 26-ModuleLoad into develop
Viewing commit d1bee614
Prev
Show latest version
2 files
+ 38
84
Preferences
File browser
Compare changes
+ 32
0
#!/bin/bash
#filename_check.sh
usage() {
echo "-r --ref file"
exit 1
}
OPTIND=1
while getopts :r: opt
do
case $opt in
r) ref=$OPTARG;;
esac
done
shift $(($OPTIND -1));
name=`readlink -e $ref`
if [ `find $name -name "* *" | wc -l` -gt 0 ];
then
echo "Error: Spaces found in Reference Files";
echo `find $name -name "* *"`;
exit 21;
fi;
if [ $(echo "$ref" | tr -d ' ') != "$ref" ];
then
echo "Error: Spaces found in Reference Files";
echo "$ref";
exit 21;
fi;