From a4ea89d6e74ed8a603d085024a0a5b465cc866ce Mon Sep 17 00:00:00 2001 From: Kroese Date: Fri, 15 Dec 2023 08:49:37 +0100 Subject: [PATCH] fix: Extended error message --- src/install.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/install.sh b/src/install.sh index c0d5760..dfb7420 100644 --- a/src/install.sh +++ b/src/install.sh @@ -141,12 +141,13 @@ if [ -f "$RDC" ]; then if [[ "$DEV" == [Nn]* ]]; then # Exclude dev/ from cpio extract { (cd "$TMP" && cpio -it < "$TMP/rd" | grep -Ev 'dev/' | while read -r entry; do cpio -idm "$entry" < "$TMP/rd" 2>/dev/null; done); rc=$?; } || : + (( rc != 0 )) && error "Failed to extract $RDC, reason $rc" && exit 92 else { (cd "$TMP" && cpio -idm <"$TMP/rd" 2>/dev/null); rc=$?; } || : + (( rc != 0 )) && error "Failed to extract $RDC, reason $rc" + (( rc != 0 )) && error "If the container runs unprivileged, please set DEV=N to exclude device nodes." && exit 92 fi - (( rc != 0 )) && error "Failed to extract $RDC, reason $rc" && exit 92 - mkdir -p /run/extract for file in $TMP/usr/lib/libcurl.so.4 \ $TMP/usr/lib/libmbedcrypto.so.5 \