summaryrefslogtreecommitdiff
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rwxr-xr-xLibrary/startup8
1 files changed, 5 insertions, 3 deletions
diff --git a/Library/startup b/Library/startup
index 7ee6cd3..171b8ed 100755
--- a/Library/startup
+++ b/Library/startup
@@ -1,6 +1,8 @@
#!/bin/bash
export PATH=$PATH:/usr/sbin:/usr/bin:/sbin:/bin
/usr/libexec/cydia/firmware.sh
-debs=/var/root/Media/Cydia/AutoInstall/*.deb
-dpkg -i ${debs}
-rm -f ${debs}
+debs=(/var/root/Media/Cydia/AutoInstall/*.deb)
+if [[ ${#debs[@]} -ne 0 && -f ${debs[0]} ]]; then
+ dpkg -i "${debs[@]}"
+ rm -f "${debs[@]}"
+fi