fastfetch/run.sh

20 lines
410 B
Bash
Raw Normal View History

2022-09-07 06:37:35 -07:00
#!/usr/bin/env sh
# make the script exit if any of the commands fail,
# making fastfetch not run if the build failed.
set -e
2021-02-18 22:25:36 +01:00
mkdir -p build/
cd build/
cmake ..
2022-09-19 19:19:09 +02:00
if [ "$OSTYPE" == "linux-gnu" ]; then
cmake_build_extra_args="-j$(nproc)"
else
cmake_build_extra_args=""
fi
cmake --build . --target fastfetch ${cmake_build_extra_args}
2022-09-22 22:02:58 +02:00
export LSAN_OPTIONS=suppressions=../tests/lsan.supp
2021-02-20 20:00:06 +01:00
./fastfetch "$@"