mirror of
https://github.com/kevinveenbirkenbach/raspberry-pi-tools.git
synced 2024-11-26 03:44:44 +01:00
Optimized messages
This commit is contained in:
parent
ee661b2f1f
commit
0d0a2d1d9a
@ -26,7 +26,7 @@ destructor(){
|
|||||||
}
|
}
|
||||||
|
|
||||||
error(){
|
error(){
|
||||||
echo "ERROR: $1 Leaving program."
|
echo "ERROR: $1 -> Leaving program."
|
||||||
destructor
|
destructor
|
||||||
exit 1;
|
exit 1;
|
||||||
}
|
}
|
||||||
@ -144,7 +144,7 @@ fi
|
|||||||
echo "Verifying image..."
|
echo "Verifying image..."
|
||||||
if [[ -v image_checksum ]]
|
if [[ -v image_checksum ]]
|
||||||
then
|
then
|
||||||
echo "$image_checksum $image_path"| md5sum -c -|| error "Verification failed."
|
echo "$image_checksum $image_path"| md5sum -c -|| error "Verification failed. Delete image via \"rm $image_path\"."
|
||||||
else
|
else
|
||||||
warning "Verification is not possible. No checksum is define."
|
warning "Verification is not possible. No checksum is define."
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user