transcript / samsa2

SAMSA pipeline, version 2.0. An open-source metatranscriptomics pipeline for analyzing microbiome data, built around DIAMOND and customizable reference databases.
GNU General Public License v3.0
53 stars 36 forks source link

modify full_database_download.bash issue66 #67

Closed EugeneKim76 closed 2 years ago

EugeneKim76 commented 2 years ago

From issue: https://github.com/transcript/samsa2/issues/66 I recently used full_database_download.bash and found an error message below. full_database_download.bash: 26: full_database_download.bash: source: not found

So, I suggest to fix full_database_download.bash as shown below.

source "${BASH_SOURCE%/*}/../bash_scripts/lib/common.sh" ->

if [[ -d "${BASH_SOURCE%/*}/../bash_scripts/lib/common.sh" ]]; then
  source "${BASH_SOURCE%/*}/../bash_scripts/lib/common.sh"
else
#assuming that you're running this full_database_download.bash directly ("bash full_database_download.bash")
  source "../bash_scripts/lib/common.sh"
fi