Move git-check-assertions to bin/

This commit is contained in:
Sven van Heugten 2026-03-02 19:55:44 +01:00
parent 601a51109d
commit a82e98d775
No known key found for this signature in database
GPG key ID: D612F88666F4F660
3 changed files with 4 additions and 4 deletions

View file

@ -20,7 +20,7 @@ resholve.mkDerivation {
src = fs.toSource {
root = ./.;
fileset = fs.unions [
./git-check-assertions
./bin/git-check-assertions
./test.bats
];
};
@ -37,7 +37,7 @@ resholve.mkDerivation {
checkPhase = ''
runHook preCheck
shellcheck git-check-assertions test.bats
shellcheck bin/git-check-assertions test.bats
git init
git config user.email test
git config user.name test
@ -52,7 +52,7 @@ resholve.mkDerivation {
installPhase = ''
runHook preInstall
mkdir -p $out/bin
cp $src/git-check-assertions $out/bin/git-check-assertions
cp $src/bin/git-check-assertions $out/bin/git-check-assertions
runHook postInstall
'';

View file

@ -2,7 +2,7 @@
setup() {
DIR="$( cd "$( dirname "$BATS_TEST_FILENAME" )" >/dev/null 2>&1 && pwd )"
PATH="$DIR:$PATH"
PATH="$DIR/bin:$PATH"
}
@test "can run" {