aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCalvin Morrison <mutantturkey@gmail.com>2014-04-23 15:43:07 -0400
committerCalvin Morrison <mutantturkey@gmail.com>2014-04-23 15:43:07 -0400
commit3d78bb9413b8b25f267c5372e5994d2c776630d7 (patch)
tree053267d5b6edd773d2830fee25c13584a4c68230
parentf9f1613618a2bd0850b1514a75a5e9ac3a1d4974 (diff)
fix parsing of args
-rwxr-xr-xSelectiveWholeGenomeAmplification6
1 files changed, 4 insertions, 2 deletions
diff --git a/SelectiveWholeGenomeAmplification b/SelectiveWholeGenomeAmplification
index 104495f..a3e3a24 100755
--- a/SelectiveWholeGenomeAmplification
+++ b/SelectiveWholeGenomeAmplification
@@ -66,12 +66,10 @@ else
fi
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
if [[ "$i" = "1" ]] || [[ "$i" = "count" ]]; then
@@ -96,6 +94,10 @@ if (( $# != 0 )); then
"as your base"
exit
fi
+
+ if [[ -n $step ]]; then
+ unset all
+ fi
done;
fi;