diff mbox series

[v5,1/5] opkg-build: make sure destination dir exists

Message ID 20230724204018.352695-1-p.lobacz@welotec.com
State New
Headers show
Series [v5,1/5] opkg-build: make sure destination dir exists | expand

Commit Message

Piotr Ɓobacz July 24, 2023, 8:40 p.m. UTC
From: Christian Hermann <mail@hermannch.dev>

Signed-off-by: Christian Hermann <mail@hermannch.dev>
Signed-off-by: Alex Stewart <alex.stewart@ni.com>
---
 opkg-build | 2 ++
 1 file changed, 2 insertions(+)
diff mbox series

Patch

diff --git a/opkg-build b/opkg-build
index 1b56416..3333020 100755
--- a/opkg-build
+++ b/opkg-build
@@ -263,6 +263,8 @@  case $# in
 	dest_dir=$2
 	if [ "$dest_dir" = "." -o "$dest_dir" = "./" ] ; then
 	    dest_dir=$PWD
+	else
+		mkdir -p "$dest_dir"
 	fi
 	;;
 *)