Skip to content

Commit

Permalink
fixed autodownload of sequences
Browse files Browse the repository at this point in the history
- online status and check for other instances was not working correctly
  • Loading branch information
jotech committed Feb 15, 2023
1 parent e2f3209 commit 55368fc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/gapseq_find.sh
Original file line number Diff line number Diff line change
Expand Up @@ -371,8 +371,9 @@ mkdir -p $seqpath/rev $seqpath/unrev $seqpath_user

#check for updates if internet connection is available
if [[ "$force_offline" = false ]]; then
is_online=$(wget -q --spider http://rz.uni-kiel.de)
is_running=$(pgrep -f "bash.*$script_name" | grep -v "^$$") # do not check for updates if running in parallel mode (several gapseq processes at once)
wget -q --spider http://rz.uni-kiel.de
is_online=$?
[[ `pgrep -f $0` != "$$" ]] && is_running=yes
if [[ $is_online -eq 0 && -z "$is_running" ]]; then
$dir/update_sequences.sh $taxonomy
fi
Expand Down

0 comments on commit 55368fc

Please sign in to comment.