Pi66

pino
Python notification daemon.
git clone https://git.pi66.xyz/pino

← back to log

Update install.py

author: Pixel2175
date: 2024-12-21 15:46
hash: 40082ca2920727133ce8dccfadae9bb2d15c50d7

Diffstat:

M

install.py
8 +++++++++++++++---------------
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
diff --git a/install.py b/install.py
index 2c5ef56..33dead7 100644
--- a/install.py
+++ b/install.py
@@ -86,7 +86,7 @@ def install_libs():
         print("[*]- Pip Upgraded Successfully !!")
     except OSError as e:
         print("[*]- Pip upgrade failed\ncheck pip_upgrade_error.txt for more info")
-        os.system(f"echo {e} > pip_upgrade_error.txt > /dev/null 2>&1")
+        os.system(f"echo {e} > pip_upgrade_error.txt")

     try:
         os.system(
@@ -95,7 +95,7 @@ def install_libs():
         print("[*]- Install libs successful !!")
     except OSError as e:
         print("[*]- Install libs failed !!\ncheck lib_install_error.txt for more info")
-        os.system(f"echo {e} > lib_install_error.txt > /dev/null 2>&1")
+        os.system(f"echo {e} > lib_install_error.txt")


 def copy_file():
@@ -110,7 +110,7 @@ def copy_file():
         os.system("rm pino > /dev/null 2>&1")
     except OSError as e:
         print("Installing app failed\ncheck app_install_error.txt file for more info")
-        os.system(f"echo {e} > app_install_error.txt > /dev/null 2>&1")
+        os.system(f"echo {e} > app_install_error.txt")
     try:
         os.system("sudo mkdir /etc/pino/ > /dev/null 2>&1")
         os.system("mkdir -p ~/.config/pino/plugs/ > /dev/null 2>&1")
@@ -121,7 +121,7 @@ def copy_file():
         print("\n[*]- Done")
     except OSError as e:
         print("Creating config files failed\ncheck config_error.txt for more info")
-        os.system(f"echo {e} > config_error.txt > /dev/null 2>&1")
+        os.system(f"echo {e} > config_error.txt")


 install_pip()