]> git.p6c8.net - jirafeau_mojo42.git/blob - lib/locales/remove.sh
[TASK] simplify Dockerfile
[jirafeau_mojo42.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