Files
mocksnow/update_module.sh
2025-03-22 17:05:42 +11:00

11 lines
196 B
Bash
Executable File

#!/bin/sh
if [ "$#" -ne 1 ]; then
echo "Usage: $0 <new module name>"
exit 1
fi
new_module=$1
find . -type d -name .git -prune -o -type f -exec sed -i '' -e "s/mocksnow/${new_module}/g" {} \;