From f1a5029d2090a6d3c2d8907e55b36aa7545b2029 Mon Sep 17 00:00:00 2001 From: Norman <3585653+normanlolx@users.noreply.github.com> Date: Wed, 25 Feb 2026 14:55:08 +0100 Subject: [PATCH] #25 Update sed command to remove old auth token pattern --- commands/host/1x-token-setup | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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