Last active
March 11, 2026 06:23
-
-
Save HoughIO/358363ef2cb9529269ca48aeb8b2e78c to your computer and use it in GitHub Desktop.
KittyCam Trading Cards Update
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # KittyCam Trading Cards Update Script | |
| set -e | |
| cd /opt/kittycam/web | |
| echo "π΄ Downloading trading cards..." | |
| curl -L "https://tmpfiles.org/dl/28383140/trading-cards-bundle.zip" -o /tmp/tc.zip | |
| echo "π¦ Extracting..." | |
| sudo unzip -o /tmp/tc.zip -d /opt/kittycam/web/ | |
| echo "π§ Adding π΄ button to index.html..." | |
| if grep -q "trading-cards" index.html 2>/dev/null; then | |
| echo " Already has trading cards link" | |
| else | |
| # Add link to tabs section | |
| sudo sed -i 's|<button class="tab" data-page="activity">|<a href="trading-cards.html" class="tab" style="text-decoration:none;color:inherit"><span class="tab-icon">π΄</span>Cards</a>\n <button class="tab" data-page="activity">|' index.html | |
| fi | |
| rm /tmp/tc.zip | |
| echo "β Done! Access /trading-cards.html" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment