fix debian postinst in the case of non existing legacy cache file

This commit is contained in:
Christoph Klaffl 2020-01-31 09:13:18 +01:00
parent f87160d6db
commit dedf35df85
No known key found for this signature in database
GPG Key ID: 8FC1D76EED4970D2
1 changed files with 1 additions and 1 deletions

View File

@ -1,4 +1,4 @@
#!/bin/bash
# remove old cache file
[ -f /var/cache/sanoidsnapshots.txt ] && rm /var/cache/sanoidsnapshots.txt
[ -f /var/cache/sanoidsnapshots.txt ] && rm /var/cache/sanoidsnapshots.txt || true