Don't forget to retrieve only md5 part

* md5sum return spacing and - in more , remove it
This commit is contained in:
Camille Lafitte 2020-03-05 15:36:31 +01:00
parent 0ac427fdae
commit 092b337494

View File

@ -106,7 +106,7 @@ fi
################################## ##################################
# Prevent multi execution on same directory # Prevent multi execution on same directory
################################## ##################################
lock=$(echo -n "$IMG_PATH" | md5sum) lock=$(echo -n "$IMG_PATH" | md5sum| cut -d" " -f1)
if [ -f "/tmp/$lock" ]; then if [ -f "/tmp/$lock" ]; then
echo "$IMG_PATH yet in progress" echo "$IMG_PATH yet in progress"