mirror of
https://github.com/tadfisher/pass-otp.git
synced 2025-12-12 20:35:50 +01:00
Use command -v instead of which for finding programs
which is non-standard and prints warnings when programs are not installed, but pass-otp already handles programs not being installed properly. Still use which in the tests because it usefully prints the $PATH too.
This commit is contained in:
@@ -8,7 +8,6 @@
|
|||||||
, gnupg
|
, gnupg
|
||||||
, pass
|
, pass
|
||||||
, shellcheck
|
, shellcheck
|
||||||
, which
|
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
@@ -33,7 +32,7 @@ stdenv.mkDerivation {
|
|||||||
doCheck = true;
|
doCheck = true;
|
||||||
|
|
||||||
patchPhase = ''
|
patchPhase = ''
|
||||||
sed -i -e 's|OATH=\$(which oathtool)|OATH=${oathToolkit}/bin/oathtool|' otp.bash
|
sed -i -e 's|OATH=\$(command -v oathtool)|OATH=${oathToolkit}/bin/oathtool|' otp.bash
|
||||||
'';
|
'';
|
||||||
|
|
||||||
checkPhase = ''
|
checkPhase = ''
|
||||||
|
|||||||
Reference in New Issue
Block a user