Files
monero_c/docs/update_screenshot.sh
cyan d04dcf67ec initial work on docs (#69)
* initial work on docs
* fix DOCKER_VERSION
* update location
* add the path **properly**
* Update docs workflow
2024-10-17 10:50:22 +02:00

14 lines
523 B
Bash
Executable File

#!/bin/bash
set -x -e
go install github.com/homeport/termshot/cmd/termshot@main
cargo install onefetch
COMMIT_COUNT=$(git log --pretty=format:'' | wc -l | xargs)
echo Commit count: $COMMIT_COUNT
if (( $COMMIT_COUNT % 69 == 0 ))
then
echo "easter egg, yay!"
termshot --show-cmd --filename Writerside/assets/onefetch.png -- "onefetch --number-of-authors 0 -a html | lolcat"
else
echo "normal. Yay."
termshot --show-cmd --filename Writerside/assets/onefetch.png -- "onefetch --number-of-authors 0 -a c++"
fi