Skip to content

Commit

Permalink
setup: fix rsync check
Browse files Browse the repository at this point in the history
Not all distros have rsync installed by default.
  • Loading branch information
marcone committed Dec 17, 2024
1 parent 181929c commit 00332e6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion setup/pi/configure.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,10 @@ function check_variable () {
# Check that the default rsync works correctly, and install a newer version
# if needed.
function check_default_rsync {
hash rsync
if ! hash rsync
then
apt install rsync
fi

rm -rf /tmp/rsynctest
mkdir -p /tmp/rsynctest/src /tmp/rsynctest/dst
Expand Down

0 comments on commit 00332e6

Please sign in to comment.