diff --git a/scanLauncher.sh b/scanLauncher.sh index 97f11de3c080d4f10cf572c9253bce42d855b5a5..f55a15409d79b6b2451884216b78bfb807049184 100755 --- a/scanLauncher.sh +++ b/scanLauncher.sh @@ -94,8 +94,10 @@ if echo "${scanName}" | grep "tune_globalpreamp" >>/dev/null; then exit 1 else targetAmpOrCharge=$(jq -j '.common_config.target_preamp' $SCANCFG) - targetToT=$(echo $scan | jq -r '.[1]') + targetToT=$(echo $scan | jq -r '.[1]') fi +elif echo "${scanName}" | grep "totscan" >>/dev/null; then + targetAmpOrCharge=$(jq -j '.common_config.target_preamp' $SCANCFG) else targetToT="" if [[ $(echo $scan | jq '. | length') == 2 ]]; then