home/wm: fix path env in scripts
This commit is contained in:
parent
43ff91ab6a
commit
2d3fec1ef5
3 changed files with 3 additions and 3 deletions
|
@ -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
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue