tor-browser-bundle: basic checks for the wrapper script

This commit is contained in:
Joachim Fasting 2017-09-26 20:35:22 +02:00
parent fc44e91ad5
commit 206e4a6d69
No known key found for this signature in database
GPG Key ID: 66EAB6B14F6B6E0D

View File

@ -359,6 +359,13 @@ stdenv.mkDerivation rec {
"\$@"
EOF
chmod +x $out/bin/tor-browser
echo "Syntax checking wrapper ..."
bash -n $out/bin/tor-browser
echo "Checking wrapper ..."
DISPLAY="" XAUTHORITY="" DBUS_SESSION_BUS_ADDRESS="" TBB_HOME=$TMPDIR/tbb \
$out/bin/tor-browser -version >/dev/null
'';
meta = with stdenv.lib; {