Skip to content

Commit

Permalink
removed check_pendrive.sh script
Browse files Browse the repository at this point in the history
  • Loading branch information
AlmuHS committed Jun 24, 2018
1 parent 8a8db93 commit a775865
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 13 deletions.
4 changes: 2 additions & 2 deletions aux_scripts/check_pendrive.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ def get_usb():
return 0


print(get_usb())
sys.exit(get_usb())
exists_pendrive = get_usb()
sys.exit(exists_pendrive)
10 changes: 0 additions & 10 deletions aux_scripts/check_pendrive.sh

This file was deleted.

2 changes: 1 addition & 1 deletion polkit-rules/10-inhibit-shutdown.rules
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ polkit.addRule(function(action, subject) {
{

try{
polkit.spawn(["/usr/bin/pendrive-reminder/aux_scripts/check_pendrive.sh", subject.user]);
polkit.spawn(["/usr/bin/pendrive-reminder/aux_scripts/check_pendrive.py", subject.user]);
return polkit.Result.YES;

}catch(error){
Expand Down

0 comments on commit a775865

Please sign in to comment.