aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCalvin Morrison <mutantturkey@gmail.com>2014-04-23 15:19:32 -0400
committerCalvin Morrison <mutantturkey@gmail.com>2014-04-23 15:19:32 -0400
commitd7cba669e1de0545e8a6bcb71a042bde56bba7a8 (patch)
tree1143ebce480849c09b2be20d47d50bd6fda6edde
parentc827f42ff9af35117c0732439d6d495235469cf9 (diff)
better flag support
-rwxr-xr-xSelectiveWholeGenomeAmplification10
1 files changed, 8 insertions, 2 deletions
diff --git a/SelectiveWholeGenomeAmplification b/SelectiveWholeGenomeAmplification
index 5b33be1..104495f 100755
--- a/SelectiveWholeGenomeAmplification
+++ b/SelectiveWholeGenomeAmplification
@@ -49,7 +49,8 @@ check_mers() {
rmdir $tmp_directory/counts-lock
}
-all=run
+all=1
+
# Parse in our arguments
if [[ -z "$foreground" ]] && [[ -z "$background" ]]; then
if (( $# < 2 )); then
@@ -64,7 +65,12 @@ else
start=1
fi
-if (( $# > 2 )); then
+if [[ -n "$step_mers" ]] || [[ -n "$step_filters" ]] || [[ -n "$step_select" ]] || [[ -n "$step_score" ]]; then
+ echo "unset all"
+ unset all
+fi
+
+if (( $# != 0 )); then
unset all
for i in "${@:$start}"; do