mirror of
https://github.com/dw-0/kiauh.git
synced 2025-12-23 15:53:36 +05:00
Update droidklipp.py
fixed folder creating and bug
This commit is contained in:
@@ -1,11 +1,13 @@
|
|||||||
import os
|
|
||||||
import subprocess
|
|
||||||
|
|
||||||
def install_droidklipp():
|
def install_droidklipp():
|
||||||
try:
|
try:
|
||||||
print("Installing DroidKlipp...")
|
print("Are you sure you want to install DroidKlipp? (Y/N)")
|
||||||
|
user_confirmation = input().strip().lower()
|
||||||
|
|
||||||
# Install necessary dependencies
|
if user_confirmation != 'y':
|
||||||
|
print("DroidKlipp installation aborted.")
|
||||||
|
return
|
||||||
|
|
||||||
|
print("Installing DroidKlipp...")
|
||||||
subprocess.run(['sudo', 'apt', 'install', '-y', 'adb', 'tmux'], check=True)
|
subprocess.run(['sudo', 'apt', 'install', '-y', 'adb', 'tmux'], check=True)
|
||||||
|
|
||||||
# Define the DroidKlipp repository URL and directory
|
# Define the DroidKlipp repository URL and directory
|
||||||
@@ -39,5 +41,4 @@ def install_droidklipp():
|
|||||||
except Exception as e:
|
except Exception as e:
|
||||||
print(f"Unexpected error: {e}")
|
print(f"Unexpected error: {e}")
|
||||||
|
|
||||||
# Run the function
|
# Ensure you call this with proper confirmation before installation
|
||||||
install_droidklipp()
|
|
||||||
|
|||||||
Reference in New Issue
Block a user