]> git.saurik.com Git - cydia.git/blobdiff - Library/startup
Fix the type of the ellipsis: argument.
[cydia.git] / Library / startup
index 6efc471dd58d8d6932af4b629aa0642a60b1528f..4d72c330f1fce56144e6826ad9c75233ff877b54 100755 (executable)
@@ -1,7 +1,21 @@
 #!/bin/bash
+
 export PATH=$PATH:/usr/sbin:/usr/bin:/sbin:/bin
+sbdidlaunch
+
+if [[ ! -e /var/lib/cydia/firmware.ver ]]; then
+    cache=
+fi
+
 /usr/libexec/cydia/firmware.sh
-/usr/libexec/cydia/space.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[@]}"
+    cache=
+fi
+
+if [[ ${cache+@} ]]; then
+    su -c uicache mobile
+fi