From bdd7421906997300b265e98bba06406da9edb174 Mon Sep 17 00:00:00 2001 From: Fredrik Fornwall Date: Wed, 20 Sep 2017 21:27:36 +0200 Subject: [PATCH] Handle more tar files in root folder detection Fixes #1548. --- build-package.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build-package.sh b/build-package.sh index 2f3e433f4..964955aeb 100755 --- a/build-package.sh +++ b/build-package.sh @@ -475,7 +475,7 @@ termux_step_extract_package() { rm -Rf $folder unzip -q "$file" else - folder=`tar tf "$file" | head -1 | sed -e 's/\/.*//'` + folder=`tar tf "$file" | head -1 | sed 's/^.\///' | sed -e 's/\/.*//'` rm -Rf $folder tar xf "$file" fi