Skip to content

Commit

Permalink
Merge pull request #1 from CachyOS/rsync-fix
Browse files Browse the repository at this point in the history
Add rsync to build dependencies
  • Loading branch information
lseman authored Feb 8, 2024
2 parents f411293 + f1d1d24 commit 38594c1
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions cachyos-deb.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,11 @@ _tick_type="nohz_full"
check_deps() {

# List of dependencies to check
dependencies=(git libncurses-dev curl gawk flex bison openssl libssl-dev dkms libelf-dev libudev-dev libpci-dev libiberty-dev autoconf llvm bc)

# Function to check if a package is installed
is_installed() {
dpkg -l | grep "^ii" | grep -q "$1"
return $?
}
dependencies=(git libncurses-dev curl gawk flex bison openssl libssl-dev dkms libelf-dev libudev-dev libpci-dev libiberty-dev autoconf llvm bc rsync)

# Iterate over dependencies and check each one
for dep in "${dependencies[@]}"; do
if is_installed "$dep"; then
if dpkg -s "$dep" 2>/dev/null 1>&2; then
#echo "Package $dep is installed."
continue
else
Expand Down

0 comments on commit 38594c1

Please sign in to comment.