]> git.saurik.com Git - cydia.git/blobdiff - control.sh
Ignore .dSYM folders I am suddenly ending up with.
[cydia.git] / control.sh
index 537cb66367c821a136b181ea410db3feb66d4eaf..3d808bf8ddaab49528b97a31db3292d6e1ddc459 100755 (executable)
@@ -1,5 +1,6 @@
 #!/bin/bash
 #!/bin/bash
-dir=$1
+src=$1
+dir=$2
 dir=${dir:=_}
 dir=${dir:=_}
-sed -e "s@^\(Version:\).*@\1 $(./version.sh)@" control
+sed -e "s@^\(Version:\).*@\1 $(./version.sh)@" "${src}"
 echo "Installed-Size: $(du -s "${dir}" | cut -f 1)"
 echo "Installed-Size: $(du -s "${dir}" | cut -f 1)"