vscode: check if substitution succeeded
Co-Authored-By: Synthetica9 <git@hilhorst.be>
This commit is contained in:
parent
42584ba5b2
commit
bdb497f2d7
@ -111,6 +111,7 @@ in
|
|||||||
|
|
||||||
# Override the previously determined VSCODE_PATH with the one we know to be correct
|
# Override the previously determined VSCODE_PATH with the one we know to be correct
|
||||||
sed -i "/ELECTRON=/iVSCODE_PATH='$out/lib/vscode'" $out/bin/code
|
sed -i "/ELECTRON=/iVSCODE_PATH='$out/lib/vscode'" $out/bin/code
|
||||||
|
grep -q "VSCODE_PATH='$out/lib/vscode'" $out/bin/code # check if sed succeeded
|
||||||
'';
|
'';
|
||||||
|
|
||||||
preFixup = lib.optionalString (system == "i686-linux" || system == "x86_64-linux") ''
|
preFixup = lib.optionalString (system == "i686-linux" || system == "x86_64-linux") ''
|
||||||
|
Loading…
Reference in New Issue
Block a user