OneLauncher-Cracked/packages/scripts/dedupe.sh
Pauline 791adbf173
🔨 chore: script fixies x2
Signed-off-by: Pauline <git@ethanlibs.co>
2024-09-18 16:25:15 +02:00

10 lines
255 B
Bash
Executable file

#!/usr/bin/env bash
set -euo pipefail
__dirname="$(CDPATH='' cd "$(dirname "$0")" && pwd -P)"
# TODO: make it work with macOS grep
grep -Po '^\s+"[\w-]+\s+\d(\.\d+)*[^"]*"' "${__dirname}/../../Cargo.lock" \
| xargs printf '%s\n' \
| sort -u -k 1b,2V