Skip to content

Commit

Permalink
Update ghost
Browse files Browse the repository at this point in the history
  • Loading branch information
enty8080 authored May 6, 2020
1 parent 9cfd1a8 commit f3b3bd9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions etc/ghost
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def main():
os.system("cat data/cmds/core_cmds.txt")
print("")
elif ui[0] == "connect":
if ui[1] == "":
if len(ui) < 2:
print("Usage: connect <device>")
else:
print(G+"Connecting to "+ui[1]+"...")
Expand Down Expand Up @@ -160,7 +160,7 @@ def main():
elif con[0] == "keycodes":
os.system("cat data/keycode/keycodes.txt")
elif con[0] == "keycode":
if con[1] == "":
if len(con) < 2:
print("Usage: keycode <keycode_number>")
else:
nums = open("substrate/keynums.txt").read()
Expand Down Expand Up @@ -324,7 +324,7 @@ def main():
g = os.environ['HOME']
os.chdir(g + "/ghost")
elif con[0] == "uninstall":
if con[1] == "":
if len(con) < 2:
print("Usage: uninstall <application>")
else:
apps = os.popen("adb shell pm list packages -f | grep package:").read()
Expand All @@ -342,7 +342,7 @@ def main():
else:
print(E+"Application is not found!")
elif con[0] == "launch":
if con[1] == "":
if len(con) < 2:
print("Usage: launch <application>")
else:
apps = os.popen("adb shell pm list packages -f | grep package:").read()
Expand All @@ -364,7 +364,7 @@ def main():
for i in apps:
print(i)
elif con[0] == "install":
if con[1] == "":
if len(con) < 2:
print("Usage: install <local_path>")
else:
w = os.environ['OLDPWD']
Expand Down

0 comments on commit f3b3bd9

Please sign in to comment.