swmodd: fix typos in error message for low disk space, bundle existence

This commit is contained in:
Roman Azarenko 2022-10-23 21:26:42 +02:00
parent 47f938f0fd
commit 152a15d147
No known key found for this signature in database
GPG key ID: 621795252915BD63

View file

@ -81,7 +81,7 @@ run_container() {
bridge="${3}"
if [ ! -d "${bundle:?}/${name:?}" ]; then
log "Bundle does not exists"
log "Bundle does not exist"
return 1
fi
@ -188,7 +188,7 @@ pull_image_from_registry() {
disksize=$(df -P -k ${BUNDLE} |tail -n +2 |awk '{print $4}')
exsize=$(du -s ${temp} |awk '{print $1}')
if [ "${disksize}" -lt "${exsize}" ]; then
log "Disk space ${disksize} less that required ${exists}"
log "Disk space ${disksize} less than required ${exsize}"
cd -
rm -rf "${temp}"
exit 1