3 # Commits updates to apps, allowing you to edit the commit messages
7 if [ ! -d metadata ]; then
8 [ -d ../metadata ] && cd .. || { echo "No metadata files found!"; exit 2; }
12 if [[ "$line" == *M*metadata/*.txt ]]; then
20 if [ "$id" == "$arg" ]; then
28 [ -d metadata/$id ] && extra=metadata/$id
32 if [[ "$l" == "Auto Name:"* ]]; then
34 elif [[ "$l" == "Name:"* ]]; then
39 if [ -n "$name" ]; then
40 fullname="$name ($id)"
41 elif [ -n "$autoname" ]; then
42 fullname="$autoname ($id)"
49 if [[ "$l" == "+Build:"* ]]; then
56 done < <(git diff HEAD -- "$file")
58 if [ $newbuild -eq 0 ]; then
61 message="Update $fullname to $version ($vercode)"
64 commands+=("git commit -m '$message' -e -v -- $file $extra")
66 done < <(git status --porcelain)
68 for cmd in "${commands[@]}"; do