command -v ssh > /dev/null \
|| errlog "command ssh not found" \
|| return $?
- command -v savelog > /dev/null \
- || errlog "command savelog not found" \
- || return $?
- command -v du > /dev/null \
- || errlog "command du not found" \
- || return $?
- command -v wc > /dev/null \
- || errlog "command wc not found" \
- || return $?
[ -f "config.yaml" ] \
|| errlog "file config.yaml not found" \
|| return $?
command -v yq > /dev/null \
|| errlog "command yq not found" \
|| return $?
+ command -v cryptsetup > /dev/null \
+ || errlog "command cryptsetup not found" \
+ || return $?
+
[ -n "$cmd" ] \
|| errlog "missing command" \
|| return $?
esac
done
- command -v yq > /dev/null || errlog "yq command not found" || return $?
+ command -v yq > /dev/null \
+ || errlog "command yq not found" \
+ || return $?
command -v rsync > /dev/null \
- || errlog "rsync command not found" \
+ || errlog "command rsync not found" \
+ || return $?
+ command -v ssh > /dev/null \
+ || errlog "command ssh not found" \
|| return $?
+
[ -f "config.yaml" ] \
|| errlog "file config.yaml not found" \
|| return $?