Fix issue with plugins having plugins command

This commit is contained in:
Domonkos Czinke committed 2016-02-24 23:44:19 +01:00
1 parent 653dc1c518
commit ac5944ec79
1 file changed
+1 -1
+1 -1
View File
@@ -58,7 +58,7 @@ if [[ $(id -un) != "dokku" ]] && [[ ! $1 =~ plugin:* ]]; then
exit $?
fi
if [[ $(id -un) != "root" && $1 =~ plugin:.* ]]; then
if [[ $(id -un) != "root" && $1 =~ ^plugin:.* ]]; then
dokku_log_fail "plugin:* commands must be run as root"
fi