1
0
mirror of https://github.com/sstephenson/bats.git synced 2024-11-17 11:42:33 +01:00

install.sh should make files executable before copy

This commit is contained in:
Sam Zaydel 2017-11-24 07:34:02 -08:00
parent 03608115df
commit 6a047515e0

View File

@ -28,10 +28,11 @@ if [ -z "$1" ]; then
fi fi
BATS_ROOT="$(abs_dirname "$0")" BATS_ROOT="$(abs_dirname "$0")"
mkdir -p "$PREFIX"/{bin,libexec,share/man/man{1,7}} mkdir -p "${PREFIX%/}"/{bin,libexec,share/man/man{1,7}}
cp -R "$BATS_ROOT"/bin/* "$PREFIX"/bin chmod +x "$BATS_ROOT"/bin/* "$BATS_ROOT"/libexec/*
cp -R "$BATS_ROOT"/libexec/* "$PREFIX"/libexec cp -R "$BATS_ROOT"/bin/* "${PREFIX%/}"/bin
cp "$BATS_ROOT"/man/bats.1 "$PREFIX"/share/man/man1 cp -R "$BATS_ROOT"/libexec/* "${PREFIX%/}"/libexec
cp "$BATS_ROOT"/man/bats.7 "$PREFIX"/share/man/man7 cp "$BATS_ROOT"/man/bats.1 "${PREFIX%/}"/share/man/man1
cp "$BATS_ROOT"/man/bats.7 "${PREFIX%/}"/share/man/man7
echo "Installed Bats to $PREFIX/bin/bats" echo "Installed Bats to ${PREFIX%/}/bin/bats"