aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorRahiel Kasim <rahiel@protonmail.ch>2016-01-03 23:23:46 +0100
committerRahiel Kasim <rahiel@protonmail.ch>2016-01-03 23:23:46 +0100
commitaacea31ca8ca63c05f4914413b683ddbe930768c (patch)
treeb6614b764f53e25c6ed96aaec4eacc48453c6852
parent53381426029d51c0461669bcc1fbe9dc366153ca (diff)
fix restore and pypi upload script
-rw-r--r--firectl.py4
-rwxr-xr-xupdate-pypi.bash4
2 files changed, 4 insertions, 4 deletions
diff --git a/firectl.py b/firectl.py
index 1707933..492b22b 100644
--- a/firectl.py
+++ b/firectl.py
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
-__version__ = "0.2"
+__version__ = "0.2.2"
import os
from difflib import get_close_matches
@@ -179,5 +179,5 @@ def status():
def restore():
"""Re-enable firejail profiles for when desktop files get updated."""
header, conf = get_config()
- if len(conf) > 1:
+ if len(conf) > 0:
enable.callback(conf, update_config=False)
diff --git a/update-pypi.bash b/update-pypi.bash
index c29b5bf..4423149 100755
--- a/update-pypi.bash
+++ b/update-pypi.bash
@@ -1,8 +1,8 @@
#!/usr/bin/env bash
rm -R dist/
-python setup.py sdist # source distribution
-python setup.py bdist_wheel # built package
+python3 setup.py sdist # source distribution
+python3 setup.py bdist_wheel # built package
# gpg --detach-sign -a dist/*
read -p "Password: " password