don't use curl in bingwp
This commit is contained in:
parent
66657ed555
commit
bfcc6675aa
@ -16,7 +16,7 @@ def is_empty [file: path] {
|
||||
}
|
||||
|
||||
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 [] {
|
||||
|
@ -40,7 +40,7 @@
|
||||
Service = {
|
||||
Type = "oneshot";
|
||||
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" ];
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user