don't use curl in bingwp

This commit is contained in:
Ivan Dimitrov 2024-04-04 11:09:22 +03:00
parent 66657ed555
commit bfcc6675aa
2 changed files with 2 additions and 2 deletions

View File

@ -16,7 +16,7 @@ def is_empty [file: path] {
} }
def fetch [] { def fetch [] {
curl ("https://bing.com" + ((curl "https://www.bing.com/HPImageArchive.aspx?format=js&n=1" | from json).images.0.url)) --output $today_img_file http get ("https://bing.com" + ((http get https://www.bing.com/HPImageArchive.aspx?format=js&n=1).images.0.url)) | save $today_img_file
} }
def cleanup [] { def cleanup [] {

View File

@ -40,7 +40,7 @@
Service = { Service = {
Type = "oneshot"; Type = "oneshot";
Environment = [ Environment = [
"PATH=${pkgs.curl}/bin:${pkgs.xdg-user-dirs}/bin:${pkgs.nushell}/bin" "PATH=${pkgs.xdg-user-dirs}/bin:${pkgs.nushell}/bin"
]; ];
ExecStart = [ "${pkgs.scripts}/bin/bingwp" ]; ExecStart = [ "${pkgs.scripts}/bin/bingwp" ];
}; };