mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-01-11 17:18:09 +02:00
fixed modulus typos
This commit is contained in:
parent
aac863b896
commit
c4838dfaed
@ -21,7 +21,7 @@ func (m *Modulus) Write(f *buildfile.Buildfile) {
|
|||||||
|
|
||||||
// Verify npm exists, otherwise we cannot install the
|
// Verify npm exists, otherwise we cannot install the
|
||||||
// modulus command line utility.
|
// 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")
|
f.WriteCmdSilent("[ -f /usr/bin/npm ] || exit 1")
|
||||||
|
|
||||||
// Install the Modulus command line interface then deploy the configured
|
// Install the Modulus command line interface then deploy the configured
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
package modulus
|
package modulus
|
||||||
|
|
||||||
import (
|
import (
|
||||||
//"strings"
|
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/drone/drone/shared/build/buildfile"
|
"github.com/drone/drone/shared/build/buildfile"
|
||||||
@ -42,7 +41,7 @@ func Test_Modulus(t *testing.T) {
|
|||||||
|
|
||||||
m.Write(b)
|
m.Write(b)
|
||||||
g.Assert(b.String()).Equal(`export MODULUS_TOKEN=bar
|
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/npm ] || exit 1
|
||||||
[ -f /usr/bin/sudo ] || npm install -g modulus
|
[ -f /usr/bin/sudo ] || npm install -g modulus
|
||||||
[ -f /usr/bin/sudo ] && sudo npm install -g modulus
|
[ -f /usr/bin/sudo ] && sudo npm install -g modulus
|
||||||
|
Loading…
Reference in New Issue
Block a user