diff options
| author | cyan <cyjan@mrcyjanek.net> | 2024-10-17 10:50:22 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-10-17 10:50:22 +0200 |
| commit | d04dcf67ec042fca76b48ffc09ea9d2ea4b5106e (patch) | |
| tree | 2f9855c1c5daaece4ac17ff7ce748ba49ec86701 /docs/update_screenshot.sh | |
| parent | 939040032f6e22529ccb6b5f54d9c48fc94db3d6 (diff) | |
initial work on docs (#69)
* initial work on docs
* fix DOCKER_VERSION
* update location
* add the path **properly**
* Update docs workflow
Diffstat (limited to 'docs/update_screenshot.sh')
| -rwxr-xr-x | docs/update_screenshot.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/docs/update_screenshot.sh b/docs/update_screenshot.sh new file mode 100755 index 0000000..a404047 --- /dev/null +++ b/docs/update_screenshot.sh @@ -0,0 +1,14 @@ +#!/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
\ No newline at end of file |
