Explorar o código

Better bulk-update-apps

Willy-JL %!s(int64=2) %!d(string=hai) anos
pai
achega
6ecfe9e148
Modificáronse 2 ficheiros con 11 adicións e 1 borrados
  1. 10 0
      .utils/bulk-update-apps.sh
  2. 1 1
      .utils/gitconfig

+ 10 - 0
.utils/bulk-update-apps.sh

@@ -0,0 +1,10 @@
+#!/bin/bash
+set -e
+
+for file in */.gitsubtree; do
+    app="$(dirname "${file}")"
+    echo -e "\n\nUpdating ${app}..."
+    pushd "${app}" > /dev/null
+    git update-app
+    popd > /dev/null
+done

+ 1 - 1
.utils/gitconfig

@@ -1,4 +1,4 @@
 [alias]
     add-app = "!bash .utils/add-app.sh"
     update-app = "!bash .utils/update-app.sh"
-    bulk-update-apps = "!f() { set -e; find . -depth -maxdepth 2 -name .gitsubtree \\( -execdir git update-app \\; -o -quit \\); }; f"
+    bulk-update-apps = "!bash .utils/bulk-update-apps.sh"