mirror of
https://github.com/kevinveenbirkenbach/raspberry-pi-tools.git
synced 2026-10-27 00:12:12 +00:00
Optimized messages
This commit is contained in:
1 parent
ee661b2f1f
commit
0d0a2d1d9a
1 file changed
+2
-2
+2
-2
@@ -26,7 +26,7 @@ destructor(){
|
||||
}
|
||||
|
||||
error(){
|
||||
echo "ERROR: $1 Leaving program."
|
||||
echo "ERROR: $1 -> Leaving program."
|
||||
destructor
|
||||
exit 1;
|
||||
}
|
||||
@@ -144,7 +144,7 @@ fi
|
||||
echo "Verifying image..."
|
||||
if [[ -v image_checksum ]]
|
||||
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
|
||||
warning "Verification is not possible. No checksum is define."
|
||||
fi
|
||||
|
||||
Reference in new issue
Block a user