From ccc2f43d95807baee62a1de4792b33f5ce20a079 Mon Sep 17 00:00:00 2001 From: pika Date: Sun, 11 May 2025 17:40:54 +0200 Subject: [PATCH] wip --- swww.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/swww.sh b/swww.sh index d4cc563..b2404f3 100644 --- a/swww.sh +++ b/swww.sh @@ -36,9 +36,8 @@ checkBuildDependencies() { echo_info "Installing build dependencies.." - for i in git xdg-output liblz4-dev wayland-protocols; do - run _install "$i" - done + local deps=(git xdg-output liblz4-dev wayland-protocols) + checkAndInstall "$deps" if ! command_exists cargo; then curl --proto '=https' --tlsv1.2 -sSf "https://sh.rustup.rs" | sh @@ -57,7 +56,7 @@ echo_info "Building swww from source.." if run cargo build --release; then echo_info "Installing swww and swww-daemon to /bin" - run $_sudo cp target/release/swww{,-daemon} /bin/ + $_sudo cp target/release/swww{,-daemon} /bin/ else echo_error "Could not build with cargo build --release.." fi