Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
OpenFold
Commits
07f98811
Commit
07f98811
authored
Jun 22, 2022
by
Gustaf Ahdritz
Browse files
Fix parameter download script
parent
1f2eb733
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
scripts/download_openfold_params.sh
scripts/download_openfold_params.sh
+3
-4
No files found.
scripts/download_openfold_params.sh
View file @
07f98811
...
...
@@ -51,9 +51,8 @@ download_from_gdrive() {
}
DOWNLOAD_DIR
=
"
$1
"
PARAM_DIR
=
"
${
DOWNLOAD_DIR
}
/params"
mkdir
-p
"
${
PARAM_DIR
}
"
DOWNLOAD_PATH
=
$(
download_from_gdrive
$FILE_ID
"
${
PARAM_DIR
}
"
)
mkdir
-p
"
${
DOWNLOAD_DIR
}
"
DOWNLOAD_PATH
=
$(
download_from_gdrive
$FILE_ID
"
${
DOWNLOAD_DIR
}
"
)
DOWNLOAD_FILENAME
=
$(
basename
"
${
DOWNLOAD_PATH
}
"
)
if
[[
$FILENAME
!=
$DOWNLOAD_FILENAME
]]
;
then
...
...
@@ -63,5 +62,5 @@ if [[ $FILENAME != $DOWNLOAD_FILENAME ]]; then
fi
tar
--extract
--verbose
--file
=
"
${
DOWNLOAD_PATH
}
"
\
--directory
=
"
${
PARAM
_DIR
}
"
--preserve-permissions
--directory
=
"
${
DOWNLOAD
_DIR
}
"
--preserve-permissions
rm
"
${
DOWNLOAD_PATH
}
"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment