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