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 if [ -d metadata/$id ]; then
36 if [[ "$l" == "Auto Name:"* ]]; then
38 elif [[ "$l" == "Name:"* ]]; then
43 if [ -n "$name" ]; then
44 fullname="$name ($id)"
45 elif [ -n "$autoname" ]; then
46 fullname="$autoname ($id)"
53 if [[ "$l" == "+Build:"* ]]; then
60 done < <(git diff HEAD -- "$file")
62 if [ $newbuild -eq 0 ]; then
65 message="Update $fullname to $version ($vercode)"
68 commands+=("git commit -m '$message' -e -v -- $file $extra")
70 done < <(git status --porcelain)
72 for cmd in "${commands[@]}"; do