]> git.saurik.com Git - cydia.git/blobdiff - version.sh
Reload/nil buttons for ConfirmationController were backwards.
[cydia.git] / version.sh
index 1e204f31389e4fbae9e71cffd5130c5dc2696097..7fcf15156c3f34acd5c9f9e767aea3e91c0ef177 100755 (executable)
@@ -1,4 +1,11 @@
 #!/bin/bash
-echo -n "$(git describe --tags --dirty="+" --match="v*" | sed -e 's@-\([^-]*\)-\([^-]*\)$@+\1.\2@;s@^v@@')"
+
+if [[ $# -eq 0 ]]; then
+    flags=(--dirty="+")
+else
+    flags=("$@")
+fi
+
+echo -n "$(git describe --tags --match="v*" "${flags[@]}" | sed -e 's@-\([^-]*\)-\([^-]*\)$@+\1.\2@;s@^v@@')"
 grep '#define ForRelease 0' MobileCydia.mm &>/dev/null && echo -n '~srk'
 echo