Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OSUG
RESIF
datadump
Commits
3fcd4743
Commit
3fcd4743
authored
Jul 09, 2019
by
Jonathan Schaeffer
Browse files
Bugfix
parent
fae5167a
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/resifdatadump
View file @
3fcd4743
...
...
@@ -166,7 +166,7 @@ for dir in $(find . -maxdepth 3 -type d | sort); do
SIZE
=
$(
stat
-c
%s
$RESIFDD_WORKDIR
/
$KEY
.tar
)
SIZEGB
=
$((
$(
stat
-c
%s
$RESIFDD_WORKDIR
/
$KEY
.tar
)
/
1024
/
1024
/
1024
))
# Check if file exists on irods server
ils
-L
$KEY
/latest.tar
2>&1
/dev/null
ils
-L
$KEY
/latest.tar
>
/dev/null
2>&1
if
[[
$?
-eq
0
]]
;
then
# Latest archive exist, lets move it to previous.
echo
"[
$KEY
] latest.tar already exists on iRODS server. Let's compare hashes"
...
...
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