public
anord
read
Ledger
Why work hard when you can work easier?
Languages
Repository composition by tracked source files.
TypeScript
86%
CSS
10%
SQL
3%
Shell
1%
HTML
0%
Trace
infra/scripts/install-vm-updater.sh
Trace helps you understand code history line by line. See who changed each line, when it changed, and which commit introduced it.
Author
Date
Commit
Line
Code
1
#!/usr/bin/env bash
2
set -euo pipefail
4
APP_DIR="${APP_DIR:-/opt/ledger}"
5
TARGET_BIN="${TARGET_BIN:-/usr/local/bin/ledger-update}"
7
if [ ! -f "$APP_DIR/infra/scripts/vm-update.sh" ]; then
8
printf 'Expected updater at %s/infra/scripts/vm-update.sh\n' "$APP_DIR" >&2
9
exit 1
10
fi
12
install -m 0755 "$APP_DIR/infra/scripts/vm-update.sh" "$TARGET_BIN"
13
printf 'Installed Ledger updater to %s\n' "$TARGET_BIN"
14
printf 'You can now run: %s\n' "$TARGET_BIN"