SoftwareQuality/jabref/snap/hooks/disconnect-plug-etc-opt-edge-native-messaging-jabref

8 lines
271 B
Bash
Executable File

#!/bin/sh
if [ ! -f /etc/opt/edge/native-messaging-hosts/org.jabref.jabref.json ]; then
exit 0
elif grep --quiet '"path": "/snap' /etc/opt/edge/native-messaging-hosts/org.jabref.jabref.json; then
rm /etc/opt/edge/native-messaging-hosts/org.jabref.jabref.json
fi