blob: 8fcf553eda5c29629825563352f3712f2f48d12f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#!/usr/bin/env bash
make_ignored() {
if [ -n "$1" ]
then
while read -r lang; do
if [ "$lang" != "$1" ]
then
printf "%s," "$lang"
fi
done < <(jq 'keys|@sh' -c lockfile.json)
fi
}
TO_IGNORE=$(make_ignored $1)
SKIP_LOCKFILE_UPDATE_FOR_LANGS="$TO_IGNORE" nvim --headless -c "luafile ./scripts/write-lockfile.lua" -c "q"
# Pretty print
cp lockfile.json /tmp/lockfile.json
cat /tmp/lockfile.json | jq --sort-keys > lockfile.json
|