diff --git a/commands/host/1x-token-setup b/commands/host/1x-token-setup index 03521de..6b3f76f 100644 --- a/commands/host/1x-token-setup +++ b/commands/host/1x-token-setup @@ -77,10 +77,10 @@ fi # Make this work on MacOS and Linux >.< if [[ $OSTYPE == darwin* ]]; then # "in-place editing only works for regular files" thus change directly ~/.npmrc - sed -i '' '/\/\/git.1xinternet.de\/api\/v4\/packages\/npm\/:_authToken=/d' ~/.npmrc + sed -i '' '/\/\/git.1xinternet.de\/:_authToken=/d' ~/.npmrc else # "In-place editing" works also for symlinks on Linux, but for consistency's sake. - sed -i '/\/\/git.1xinternet.de\/api\/v4\/packages\/npm\/:_authToken=/d' ~/.npmrc + sed -i '/\/\/git.1xinternet.de\/:_authToken=/d' ~/.npmrc fi echo "//git.1xinternet.de/:_authToken=${PERSONAL_ACCESS_TOKEN}" >> ~/.ddev/homeadditions/.npmrc @@ -121,4 +121,4 @@ echo "Setup complete!" # Persist the new .composer/auth.json and .npmrc from the container back to your host (if desired): # @todo Be respectful: make sure this is desired and we don't just overwrite stuff on the host. # ddev exec 'cat $HOME/.composer/auth.json' > ~/.composer/auth.json -# ddev exec 'cat $HOME/.npmrc' > ~/.npmrc \ No newline at end of file +# ddev exec 'cat $HOME/.npmrc' > ~/.npmrc