Commit 40cb330e authored by TomKellyGenetics's avatar TomKellyGenetics
Browse files

correct running setup with no inputs

parent 9844bfe8
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -573,8 +573,10 @@ LANE=$(echo "${LANE[@]}" | tr ' ' '\n' | sort -u | tr '\n' ',' | sed 's/,$//')

#check if ID is present
if [[ -z $id ]] && [[ ${#read1[@]} -eq 0 ]]; then
    if [[ $setup == "false" ]] ; then
        echo "Error: option --id is required"
        exit 1
    fi
elif [[ $id == *" "* ]]; then
    echo "Error: \"$id\" for option -id must not contain a space"
    exit 1