Files
fastfetch/run.sh
T
2022-09-19 19:19:09 +02:00

19 lines
358 B
Bash
Executable File

#!/usr/bin/env sh
# make the script exit if any of the commands fail,
# making fastfetch not run if the build failed.
set -e
mkdir -p build/
cd build/
cmake ..
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}
./fastfetch "$@"