just use open code directly isntead of useless pass through
This commit is contained in:
parent
4f0eaddc05
commit
cb139caee1
5 changed files with 49 additions and 127 deletions
|
|
@ -323,6 +323,11 @@
|
|||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
if ! ${pkgs.iputils}/bin/ping -c1 -W2 1.1.1.1 &>/dev/null; then
|
||||
echo "No network access, skipping atuin login"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
secret="/run/secrets/atuin-key-josh"
|
||||
if [ ! -s "$secret" ]; then
|
||||
echo "Missing atuin secret at $secret" >&2
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue