summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2008-12-09 07:55:37 +0000
committerJay Freeman (saurik) <saurik@saurik.com>2010-09-30 07:09:04 +0000
commit4ef0751af2a5cae1b09491205224a97e819d8a7a (patch)
tree4fc27cdfd31827eba42481d00f2006ae07b42750
parentfefdda6bcfde597dac30b4f18341a0598cff98c1 (diff)
Removed harmless error message from startup.
-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