]> git.p6c8.net - jirafeau.git/blob - lib/locales/remove.sh
Merge branch 'rebase_integrate_docker_build_and_publish' into 'next-release'
[jirafeau.git] / lib / locales / remove.sh
1 #!/bin/bash
2 set -e
3 id=$1
4 if [ -z "$id" ]; then
5 echo "please pass the string id to remove as parameter"
6 exit 1
7 fi
8 locales_dir=$(cd "$(dirname $0)" && pwd)
9 find $locales_dir -type f -name "*.json" -print0 | xargs -0 sed -i "/$id/d"

patrick-canterino.de