aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/update-lockfile.sh9
1 files changed, 4 insertions, 5 deletions
diff --git a/scripts/update-lockfile.sh b/scripts/update-lockfile.sh
index 1ba57ff21..8fcf553ed 100755
--- a/scripts/update-lockfile.sh
+++ b/scripts/update-lockfile.sh
@@ -1,15 +1,14 @@
-#!/bin/sh
+#!/usr/bin/env bash
make_ignored() {
if [ -n "$1" ]
then
- jq keys < lockfile.json | tail --line=+2 | head --lines=-1 | tr -d "\" ," | while read lang
- do
+ while read -r lang; do
if [ "$lang" != "$1" ]
then
- printf "$lang,"
+ printf "%s," "$lang"
fi
- done
+ done < <(jq 'keys|@sh' -c lockfile.json)
fi
}