Don't forget to retrieve only md5 part
* md5sum return spacing and - in more , remove it
This commit is contained in:
parent
0ac427fdae
commit
092b337494
|
@ -106,7 +106,7 @@ fi
|
|||
##################################
|
||||
# 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
|
||||
echo "$IMG_PATH yet in progress"
|
||||
|
|
Loading…
Reference in New Issue
Block a user