Fix commands, the easy way.
Don't use pluginhook to run the commands hook, just run all the scripts in a loop.
This commit is contained in:
1 parent
3f487b2291
commit
455be29249
6 files changed
+9
-6
No files matched your search
@@ -100,7 +100,9 @@ EOF
|
|||||||
;;
|
;;
|
||||||
|
|
||||||
*)
|
*)
|
||||||
pluginhook commands "$@"
|
for script in $(ls -d /var/lib/dokku/plugins/*/commands); do
|
||||||
|
$script "$@"
|
||||||
|
done
|
||||||
;;
|
;;
|
||||||
|
|
||||||
esac
|
esac
|
||||||
@@ -84,4 +84,4 @@ EOF
|
|||||||
;;
|
;;
|
||||||
|
|
||||||
esac
|
esac
|
||||||
cat
|
|
||||||
@@ -75,4 +75,4 @@ EOF
|
|||||||
;;
|
;;
|
||||||
|
|
||||||
esac
|
esac
|
||||||
cat
|
|
||||||
@@ -173,4 +173,4 @@ EOF
|
|||||||
;;
|
;;
|
||||||
|
|
||||||
esac
|
esac
|
||||||
cat
|
|
||||||
@@ -35,6 +35,8 @@ EOF
|
|||||||
git-shell -c "$args"
|
git-shell -c "$args"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
help)
|
||||||
|
cat
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
cat
|
|
||||||
|
|
||||||
@@ -1,3 +1,2 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x
|
set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x
|
||||||
cat
|
|
||||||
Reference in new issue
Block a user