Sfoglia il codice sorgente

Better bulk-update-apps

Willy-JL 2 anni fa
parent
commit
6ecfe9e148
2 ha cambiato i file con 11 aggiunte e 1 eliminazioni
  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"