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:
4
dokku
4
dokku
@@ -100,7 +100,9 @@ EOF
|
||||
;;
|
||||
|
||||
*)
|
||||
pluginhook commands "$@"
|
||||
for script in $(ls -d /var/lib/dokku/plugins/*/commands); do
|
||||
$script "$@"
|
||||
done
|
||||
;;
|
||||
|
||||
esac
|
||||
|
||||
@@ -84,4 +84,4 @@ EOF
|
||||
;;
|
||||
|
||||
esac
|
||||
cat
|
||||
|
||||
|
||||
@@ -75,4 +75,4 @@ EOF
|
||||
;;
|
||||
|
||||
esac
|
||||
cat
|
||||
|
||||
|
||||
@@ -173,4 +173,4 @@ EOF
|
||||
;;
|
||||
|
||||
esac
|
||||
cat
|
||||
|
||||
|
||||
@@ -35,6 +35,8 @@ EOF
|
||||
git-shell -c "$args"
|
||||
;;
|
||||
|
||||
help)
|
||||
cat
|
||||
;;
|
||||
esac
|
||||
cat
|
||||
|
||||
|
||||
@@ -1,3 +1,2 @@
|
||||
#!/usr/bin/env bash
|
||||
set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x
|
||||
cat
|
||||
|
||||
Reference in New Issue
Block a user