Skip to content

Commit

Permalink
Include empty dirs in archive -- Fix #175 (#176)
Browse files Browse the repository at this point in the history
* Include empty dirs in archive

* Include empty directories in POSIX find
  • Loading branch information
bracketttc authored and megastep committed Nov 21, 2019
1 parent 0d093c0 commit e242ff1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion makeself.sh
Original file line number Diff line number Diff line change
Expand Up @@ -595,7 +595,7 @@ tmparch="${TMPDIR:-/tmp}/mkself$$.tar"
tail -n +$OLDSKIP "$archname" | $GUNZIP_CMD > "$tmparch"
fi
cd "$archdir"
find . ! -type d \
find . ! -type d -o -links 2 \
| LC_ALL=C sort \
| sed 's/./\\&/g' \
| xargs tar $TAR_EXTRA -$TAR_ARGS "$tmparch"
Expand Down

0 comments on commit e242ff1

Please sign in to comment.