diff options
-rwxr-xr-x | meta/recipes-devtools/icecc-create-env/icecc-create-env/icecc-create-env | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/meta/recipes-devtools/icecc-create-env/icecc-create-env/icecc-create-env b/meta/recipes-devtools/icecc-create-env/icecc-create-env/icecc-create-env index 0791bd54b2..426b093d91 100755 --- a/meta/recipes-devtools/icecc-create-env/icecc-create-env/icecc-create-env +++ b/meta/recipes-devtools/icecc-create-env/icecc-create-env/icecc-create-env | |||
@@ -256,7 +256,11 @@ if test -z "$silent"; then | |||
256 | fi | 256 | fi |
257 | 257 | ||
258 | cd $tempdir | 258 | cd $tempdir |
259 | tar -czhf "$mydir/$archive_name" $target_files || { | 259 | # Add everything in the temp directory. Tar doesn't like to be given files with |
260 | # ".." in them, which frequently happens in $target_files, and will strip off | ||
261 | # the path prefix past the offending "..". This makes the archive generate | ||
262 | # incorrectly | ||
263 | tar -czf "$mydir/$archive_name" . || { | ||
260 | if test -z "$silent"; then | 264 | if test -z "$silent"; then |
261 | echo "Couldn't create archive" | 265 | echo "Couldn't create archive" |
262 | fi | 266 | fi |