code-server: fix Nix string interpolation in Firefox CORS patch
Escape \${q} as ''${q} so Nix doesn't try to evaluate it as a
variable in the activation script string.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
099ff8a093
commit
ad7a45d143
1 changed files with 1 additions and 1 deletions
|
|
@ -30,7 +30,7 @@
|
|||
system.activationScripts.claude-code-firefox-fix.text = ''
|
||||
for f in /home/fred/.local/share/code-server/extensions/anthropic.claude-code-*/extension.js; do
|
||||
[ -f "$f" ] && ${pkgs.gnused}/bin/sed -i \
|
||||
's|<link href="${q}" rel="stylesheet">|<link href="${q}" rel="stylesheet" crossorigin="anonymous">|' \
|
||||
's|<link href="''${q}" rel="stylesheet">|<link href="''${q}" rel="stylesheet" crossorigin="anonymous">|' \
|
||||
"$f"
|
||||
done
|
||||
'';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue