Spaces:
Sleeping
Sleeping
Adrit Rao
commited on
Commit
•
70d0549
1
Parent(s):
687851e
Add application file v2
Browse files
app.py
CHANGED
@@ -8,6 +8,14 @@ import subprocess
|
|
8 |
import subprocess
|
9 |
|
10 |
# Command to make the script executable
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
11 |
command = "./install.sh"
|
12 |
|
13 |
try:
|
|
|
8 |
import subprocess
|
9 |
|
10 |
# Command to make the script executable
|
11 |
+
command = "chmod +x install.sh"
|
12 |
+
|
13 |
+
try:
|
14 |
+
subprocess.run(command, shell=True, check=True)
|
15 |
+
print("Script 'install.sh' has been made executable.")
|
16 |
+
except subprocess.CalledProcessError as e:
|
17 |
+
print(f"Error while making the script executable: {e}")
|
18 |
+
|
19 |
command = "./install.sh"
|
20 |
|
21 |
try:
|