mirror of
https://github.com/sobolevn/git-secret
synced 2024-11-08 19:10:31 +00:00
9348cd32e2
This reverts commit 9e8438236c
.
21 lines
402 B
Bash
21 lines
402 B
Bash
#!/usr/bin/env bats
|
|
|
|
: "${TMPDIR:=/tmp}"
|
|
|
|
INSTALL_BASE="${TMPDIR}/git-secret-test-install"
|
|
|
|
@test "install git-secret to DESTDIR='$INSTALL_BASE'" {
|
|
|
|
rm -f "${INSTALL_BASE}/usr/bin/git-secret"
|
|
|
|
cd $SECRET_PROJECT_ROOT
|
|
|
|
# set DESTDIR for this command and 'run' make install
|
|
DESTDIR="${INSTALL_BASE}" run make install
|
|
|
|
[ -x "${INSTALL_BASE}/usr/bin/git-secret" ]
|
|
|
|
rm -rf "${INSTALL_BASE}"
|
|
}
|
|
|