Skip to content
Snippets Groups Projects
Commit 7df1a370 authored by Venkat Malladi's avatar Venkat Malladi
Browse files

Check if file exists and not empty.

parent f76f9efd
Branches
Tags
No related merge requests found
......@@ -11,8 +11,8 @@ profile_script="./workflow/scripts/plot_profile.sh"
source ${profile_script}
run compute_matrix test_data/ENCSR238SGC_pooled.fc_signal.bw /project/shared/bicf_workflow_ref/mouse/GRCm38/gencode.vM20.annotation.gtf
FILE=computeMatrix.gz
if [[ -f "$FILE" ]]; then
echo "$FILE exist"
if [[ -s "$FILE" ]]; then
echo "$FILE exists and not empty"
fi
}
......@@ -20,7 +20,7 @@ profile_script="./workflow/scripts/plot_profile.sh"
source ${profile_script}
run plot_profile computeMatrix.gz
FILE=plotProfile.png
if [[ -f "$FILE" ]]; then
echo "$FILE exist"
if [[ -s "$FILE" ]]; then
echo "$FILE exists and not empty"
fi
}
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment