vscode: check if substitution succeeded

Co-Authored-By: Synthetica9 <git@hilhorst.be>
This commit is contained in:
Jörg Thalheim 2019-04-17 12:31:49 +02:00 committed by GitHub
parent 42584ba5b2
commit bdb497f2d7

View File

@ -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") ''