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 ]; buildInputs = [ pkgs.makeWrapper ];
postBuild = '' 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 ]; buildInputs = [ pkgs.makeWrapper ];
postBuild = '' 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 #!/usr/bin/env bash
res=$(dig +timeout=1 +short myip.opendns.com @resolver1.opendns.com 2>/dev/null) 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" text="NO CONN"
echo "%{F@error@}${text}%{F-}" echo "%{F@error@}${text}%{F-}"
exit 0 exit 0