Remove debug lines
This commit is contained in:
parent
e71a879748
commit
490f01bba2
1 changed files with 0 additions and 4 deletions
4
justfile
4
justfile
|
@ -78,17 +78,13 @@ _ensure_file_prepared src_path dst_path:
|
||||||
src_hash=$(md5sum {{ src_path }} | cut -d ' ' -f 1)
|
src_hash=$(md5sum {{ src_path }} | cut -d ' ' -f 1)
|
||||||
|
|
||||||
if [ ! -f "{{ dst_path }}" ] || [ ! -f "$hash_path" ]; then
|
if [ ! -f "{{ dst_path }}" ] || [ ! -f "$hash_path" ]; then
|
||||||
echo "One of the ORS"
|
|
||||||
cp {{ src_path }} {{ dst_path }}
|
cp {{ src_path }} {{ dst_path }}
|
||||||
echo $src_hash > $hash_path
|
echo $src_hash > $hash_path
|
||||||
else
|
else
|
||||||
current_hash=$(cat $hash_path)
|
current_hash=$(cat $hash_path)
|
||||||
|
|
||||||
if [ "$current_hash" != "$src_hash" ]; then
|
if [ "$current_hash" != "$src_hash" ]; then
|
||||||
echo "Hash is different ($current_hash != $src_hash)"
|
|
||||||
cp {{ src_path }} {{ dst_path }}
|
cp {{ src_path }} {{ dst_path }}
|
||||||
echo $src_hash > $hash_path
|
echo $src_hash > $hash_path
|
||||||
else
|
|
||||||
echo "Hash matches!"
|
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Reference in a new issue