browser/firefox: rename bin scripts & return proper exit codes

This commit is contained in:
Henrik Lissner 2017-04-25 00:34:48 -04:00
parent 25b1e5f8a9
commit 592d158f49
2 changed files with 6 additions and 2 deletions

View file

@ -1,5 +1,6 @@
#!/usr/bin/env python #!/usr/bin/env python2
import sys
from pyfzf import FzfPrompt from pyfzf import FzfPrompt
from lib.FirefoxProfile import FirefoxProfile from lib.FirefoxProfile import FirefoxProfile
@ -10,3 +11,4 @@ with FirefoxProfile.default() as ff:
ff.browse("http" + choice[0].split(", http")[1]) ff.browse("http" + choice[0].split(", http")[1])
else: else:
print("Aborted") print("Aborted")
sys.exit(1)

View file

@ -1,5 +1,6 @@
#!/usr/bin/env python #!/usr/bin/env python2
import sys
from pyfzf import FzfPrompt from pyfzf import FzfPrompt
from lib.FirefoxProfile import FirefoxProfile from lib.FirefoxProfile import FirefoxProfile
@ -10,3 +11,4 @@ with FirefoxProfile.default() as ff:
ff.browse("http" + choice[0].split(", http")[1]) ff.browse("http" + choice[0].split(", http")[1])
else: else:
print("Aborted") print("Aborted")
sys.exit(1)