mirror of
https://github.com/wassname/fullcalendar.git
synced 2026-07-26 13:18:16 +08:00
script to update dates in demos
This commit is contained in:
Executable
+15
@@ -0,0 +1,15 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
read -p "Enter new year (4 digits): " year
|
||||
read -p "Enter new month (2 digits): " month
|
||||
read -p "This will modify files in the demos folder, is that ok? (y/n): " yn
|
||||
|
||||
if [[ $yn != "y" ]]
|
||||
then
|
||||
exit
|
||||
fi
|
||||
|
||||
find "`dirname $0`/../demos" -type f \( -name '*.html' -o -name '*.json' \) -print0 \
|
||||
| xargs -0 sed -i '' -e "s/[0-9][0-9][0-9][0-9]-[0-9][0-9]/$year-$month/g"
|
||||
|
||||
echo "DONE"
|
||||
Reference in New Issue
Block a user