Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OSUG
RESIF
datadump
Commits
5559f2ad
Commit
5559f2ad
authored
Jul 09, 2019
by
Jonathan Schaeffer
Browse files
SIZEGB smarter
parent
fe1bfd25
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/resifdatadump
View file @
5559f2ad
...
...
@@ -89,7 +89,7 @@ if [[ $? -ne 0 ]]; then
fi
SIZE
=
$(
stat
-c
%s
$RESIFDD_WORKDIR
/
$KEY
.tar
)
SIZEGB
=
$((
$
(
stat
-c
%s
$RESIFDD_WORKDIR
/
$KEY
.tar
)
/
1024
/
1024
/
10
24
))
SIZEGB
=
$((
$
SIZE
/
10737418
24
))
# Creating remote directory if not exist
imkdir
-p
validated_seismic_metadata
...
...
@@ -164,7 +164,7 @@ for dir in $(find . -maxdepth 3 -type d | sort); do
continue
fi
SIZE
=
$(
stat
-c
%s
$RESIFDD_WORKDIR
/
$KEY
.tar
)
SIZEGB
=
$((
$
(
stat
-c
%s
$RESIFDD_WORKDIR
/
$KEY
.tar
)
/
10
24
/
1024
/
10
24
))
SIZEGB
=
$((
$
SIZE
/
10
737418
24
))
# Check if file exists on irods server
ils
-L
$KEY
/latest.tar
>
/dev/null 2>&1
if
[[
$?
-eq
0
]]
;
then
...
...
Write
Preview
Supports
Markdown
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