We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d016104 commit 6ed0decCopy full SHA for 6ed0dec
bats/tests/helpers/commands.bash
@@ -17,7 +17,11 @@ fi
17
if is_macos; then
18
CRED_HELPER="$PATH_RESOURCES/$PLATFORM/bin/docker-credential-osxkeychain"
19
elif is_linux; then
20
- CRED_HELPER="$PATH_RESOURCES/$PLATFORM/bin/docker-credential-pass"
+ if command -v pass; then
21
+ CRED_HELPER="$PATH_RESOURCES/$PLATFORM/bin/docker-credential-pass"
22
+ else
23
+ CRED_HELPER="$PATH_RESOURCES/$PLATFORM/bin/docker-credential-secretservice"
24
+ fi
25
elif is_windows; then
26
# Our docker-cli for WSL defaults to "wincred.exe" as well
27
CRED_HELPER="$PATH_RESOURCES/win32/bin/docker-credential-wincred.exe"
0 commit comments