mirror of
https://github.com/NiciDieNase/chaosflix
synced 2024-11-23 21:03:12 +00:00
10 lines
No EOL
259 B
Bash
Executable file
10 lines
No EOL
259 B
Bash
Executable file
#!/bin/sh
|
|
COUNT=$(git rev-list --count HEAD | tr -d '\n\r')
|
|
COUNT=$(expr $COUNT - 800)
|
|
if [ $(expr $COUNT % 2) -ne 0 ]; then
|
|
COUNT=$(expr $COUNT - 1)
|
|
fi
|
|
case $1 in
|
|
--touch|-t|touch) printf $COUNT ;;
|
|
--leanback|-l|leanback) printf $(expr $COUNT - 1) ;;
|
|
esac |