fixed modulus typos
This commit is contained in:
parent
aac863b896
commit
c4838dfaed
2 changed files with 2 additions and 3 deletions
|
@ -21,7 +21,7 @@ func (m *Modulus) Write(f *buildfile.Buildfile) {
|
|||
|
||||
// Verify npm exists, otherwise we cannot install the
|
||||
// modulus command line utility.
|
||||
f.WriteCmdSilent("[ -f /usr/bin/npm ] || echo ERROR: npm is required for moduls deployments")
|
||||
f.WriteCmdSilent("[ -f /usr/bin/npm ] || echo ERROR: npm is required for modulus.io deployments")
|
||||
f.WriteCmdSilent("[ -f /usr/bin/npm ] || exit 1")
|
||||
|
||||
// Install the Modulus command line interface then deploy the configured
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
package modulus
|
||||
|
||||
import (
|
||||
//"strings"
|
||||
"testing"
|
||||
|
||||
"github.com/drone/drone/shared/build/buildfile"
|
||||
|
@ -42,7 +41,7 @@ func Test_Modulus(t *testing.T) {
|
|||
|
||||
m.Write(b)
|
||||
g.Assert(b.String()).Equal(`export MODULUS_TOKEN=bar
|
||||
[ -f /usr/bin/npm ] || echo ERROR: npm is required for moduls deployments
|
||||
[ -f /usr/bin/npm ] || echo ERROR: npm is required for modulus.io deployments
|
||||
[ -f /usr/bin/npm ] || exit 1
|
||||
[ -f /usr/bin/sudo ] || npm install -g modulus
|
||||
[ -f /usr/bin/sudo ] && sudo npm install -g modulus
|
||||
|
|
Loading…
Reference in a new issue