home/wm: fix path env in scripts

This commit is contained in:
Dmitriy Pleshevskiy 2023-06-16 11:03:56 +03:00
parent 43ff91ab6a
commit 2d3fec1ef5
Signed by: pleshevskiy
GPG Key ID: 79C4487B44403985
3 changed files with 3 additions and 3 deletions

View File

@ -12,6 +12,6 @@ pkgs.symlinkJoin {
buildInputs = [ pkgs.makeWrapper ];
postBuild = ''
wrapProgram $out/bin/exchangerate --prefix PATH : @out/bin
wrapProgram $out/bin/exchangerate --prefix PATH : $out/bin
'';
}

View File

@ -10,6 +10,6 @@ pkgs.symlinkJoin {
buildInputs = [ pkgs.makeWrapper ];
postBuild = ''
wrapProgram $out/bin/external_ip --prefix PATH : @out/bin
wrapProgram $out/bin/external_ip --prefix PATH : $out/bin
'';
}

View File

@ -1,7 +1,7 @@
#!/usr/bin/env bash
res=$(dig +timeout=1 +short myip.opendns.com @resolver1.opendns.com 2>/dev/null)
if [ -z "$res" ]; then
if [ -z "$res+x" ]; then
text="NO CONN"
echo "%{F@error@}${text}%{F-}"
exit 0