no snapshot check in shell script