File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 19
19
20
20
case " $1 " in
21
21
configure)
22
- INSTALL_PATH=" /usr/lib/mozilla/native-messaging-hosts/ "
23
- install -D -m0755 /opt/jabref/lib/org.jabref.jabref.json $INSTALL_PATH
22
+ INSTALL_PATH=" /usr/lib/mozilla/native-messaging-hosts"
23
+ install -D -m0755 /opt/jabref/lib/org.jabref.jabref.json $INSTALL_PATH /org.jabref.jabref.json
24
24
DESKTOP_COMMANDS_INSTALL
25
25
;;
26
26
Original file line number Diff line number Diff line change 18
18
# the debian-policy package
19
19
case " $1 " in
20
20
purge|remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
21
- INSTALL_PATH =" /usr/lib/mozilla/native-messaging-hosts"
22
- if grep --quiet ' "path": "/opt' $INSTALL_PATH /org.jabref.jabref.json ; then
23
- rm $INSTALL_PATH /org.jabref.jabref.json
21
+ NATIVE_MESSAGING_JSON =" /usr/lib/mozilla/native-messaging-hosts/org.jabref.jabref.json "
22
+ if [ -e $NATIVE_MESSAGING_JSON ] && grep --quiet ' "path": "/opt' $NATIVE_MESSAGING_JSON ; then
23
+ rm $NATIVE_MESSAGING_JSON
24
24
fi
25
25
;;
26
26
You can’t perform that action at this time.
0 commit comments