Commit 5559f2ad authored by Jonathan Schaeffer's avatar Jonathan Schaeffer
Browse files

SIZEGB smarter

parent fe1bfd25
......@@ -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 / 1024 ))
SIZEGB=$(( $SIZE / 1073741824 ))
# 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) / 1024 / 1024 / 1024 ))
SIZEGB=$(( $SIZE /1073741824 ))
# Check if file exists on irods server
ils -L $KEY/latest.tar > /dev/null 2>&1
if [[ $? -eq 0 ]]; then
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment