Add compatibility for non-FHS 3.0 systems

* Added `shell.nix` definition for temporary development environment for Nix(OS)
* Set uuidgen and other binaries check to not rely on hard-codded paths
This commit is contained in:
Jacob Hrbek
2023-07-13 11:04:21 +02:00
committed by Igor
parent 8a13dae89d
commit 6556a3a77e
3 changed files with 16 additions and 8 deletions

View File

@@ -94,7 +94,7 @@ function cli_entrypoint() {
if [[ "${ARMBIAN_BUILD_UUID}" != "" ]]; then
display_alert "Using passed-in ARMBIAN_BUILD_UUID" "${ARMBIAN_BUILD_UUID}" "debug"
else
if [[ -f /usr/bin/uuidgen ]]; then
if command -v uuidgen 1>/dev/null; then
ARMBIAN_BUILD_UUID="$(uuidgen)"
else
display_alert "uuidgen not found" "uuidgen not installed yet" "info"