X-Git-Url: https://git.saurik.com/cydia.git/blobdiff_plain/fefdda6bcfde597dac30b4f18341a0598cff98c1..4ef0751af2a5cae1b09491205224a97e819d8a7a:/Library/startup diff --git a/Library/startup b/Library/startup index 7ee6cd3e..171b8edf 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