Skip to content
This repository has been archived by the owner on Feb 7, 2023. It is now read-only.

Avoiding errors for missing files #95

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

scapella
Copy link

I just proposed to create an empty file in case the "acc2exclude.txt" file is missing.

I just proposed to create an empty file in case the "acc2exclude.txt" file is missing.
@@ -17,6 +17,12 @@ curl -s 'https://www.ebi.ac.uk/ena/browser/api/xml/links/taxon?accession=2697049

cat ena.txt genbank.txt sra.txt | sort | uniq > union.txt
rm ena.txt

if [ ! -f acc2exclude.txt ]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess you can just do touch without the if as touch only updates the access times.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are right. Didn't think about it. Shall I do a new PR?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess you can do it here directly ...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants