Skip to content
This repository has been archived by the owner on Oct 7, 2023. It is now read-only.

Commit

Permalink
Prevent cycler from trying to rename birthday.png
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholasz2510 authored Jan 27, 2023
1 parent 88b1807 commit b40a879
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions Cycle/Cycler.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,13 @@ fi
#Logo cycling
# Iterate through files and decrease their filename by 1. Also track how many total logos are available.
for f in *.png; do
echo Renaming $f to $(printf %02d $((10#${f%.*}-1)))
mv $f $(printf %02d $((10#${f%.*}-1))).png
count=$((++count))
if [[ $f = "birthday.png" ]]; then
continue
else
echo Renaming $f to $(printf %02d $((10#${f%.*}-1)))
mv $f $(printf %02d $((10#${f%.*}-1))).png
count=$((++count))
fi
done

# Remove logo from main folder and rename it to sit at bottom of the rotation, put the lowest value image back in its place.
Expand Down

0 comments on commit b40a879

Please sign in to comment.