Vous avez reçu un message "Your GitLab account has been locked ..." ? Pas d'inquiétude : lisez cet article https://docs.gricad-pages.univ-grenoble-alpes.fr/help/unlock/

Commit 4acbdbfc authored by Jonathan Schaeffer's avatar Jonathan Schaeffer
Browse files

Minor fixes

parent 9cc1805f
......@@ -25,7 +25,7 @@ irods_push(){
KEY=$1
SIZE=$(stat -c %s $RESIFDD_WORKDIR/$KEY.tar)
SIZEMB=$(($SIZE/1024/1024))
echo "[$KEY] Sending data to iRODS ($SIZE MB)"
echo "[$KEY] Sending data to iRODS ($SIZEMB MB)"
imkdir -p $KEY
if [[ $? -ne 0 ]]; then
echo "[$KEY] Error 002 creating remote directory. Manual action has to be taken."
......@@ -199,7 +199,7 @@ for dir in $(find . -maxdepth 3 -type d | sort); do
local_sha=$(sha256sum $RESIFDD_WORKDIR/$KEY.tar | awk '{print $1}' | xxd -r -p | base64)
irods_sha=$(ichksum $KEY/latest.tar | awk -F':' '/sha2:/ {print $2; exit;}')
echo "[$KEY] local checksum: $local_sha"
echo "[$KEY] irods checksum: $irods_sha"
echo "[$KEY] irods checksum: $irods_sha"
# If the hashes differs, then move distant file and push this one
if [[ "$local_sha" = "$irods_sha" ]]; then
echo "[$KEY] The archive on irods is the same as our version. Skipping."
......
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