mirror of
https://github.com/fosslinux/live-bootstrap.git
synced 2026-03-02 01:18:08 +01:00
Handle files correctly that start with a dash
Currently these were interpreted as options
This commit is contained in:
parent
15cb1064ee
commit
57f15d3515
1 changed files with 5 additions and 5 deletions
|
|
@ -31,8 +31,8 @@ _get_files() {
|
|||
for f in ${fs}; do
|
||||
# Archive symlinks to directories as symlinks
|
||||
echo "${prefix}/${f}"
|
||||
if [ -d "${f}" ] && ! [ -h "${f}" ]; then
|
||||
cd "${f}"
|
||||
if [ -d "./${f}" ] && ! [ -h "./${f}" ]; then
|
||||
cd "./${f}"
|
||||
_get_files "${prefix}/${f}"
|
||||
cd ..
|
||||
fi
|
||||
|
|
@ -54,9 +54,9 @@ reset_timestamp() {
|
|||
fs="${fs} $(echo .[0-z]*)"
|
||||
fi
|
||||
for f in ${fs}; do
|
||||
touch -h -t 197001010000.00 "${f}"
|
||||
if [ -d "${f}" ]; then
|
||||
cd "${f}"
|
||||
touch -h -t 197001010000.00 "./${f}"
|
||||
if [ -d "./${f}" ]; then
|
||||
cd "./${f}"
|
||||
reset_timestamp
|
||||
cd ..
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue