#!/bin/sh if test "x$1" = "x" ; then exit 1; fi FN=`basename "$1"` 7z t "$1"; if test $? -gt 0 ; then notify-send "zip $FN" "File has errors"; else notify-send "zip $FN" "File is OK"; fi exit 0