Skip to content

Commit 57f15d3

Browse files
committed
Handle files correctly that start with a dash
Currently these were interpreted as options
1 parent 15cb106 commit 57f15d3

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

steps/helpers.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ _get_files() {
3131
for f in ${fs}; do
3232
# Archive symlinks to directories as symlinks
3333
echo "${prefix}/${f}"
34-
if [ -d "${f}" ] && ! [ -h "${f}" ]; then
35-
cd "${f}"
34+
if [ -d "./${f}" ] && ! [ -h "./${f}" ]; then
35+
cd "./${f}"
3636
_get_files "${prefix}/${f}"
3737
cd ..
3838
fi
@@ -54,9 +54,9 @@ reset_timestamp() {
5454
fs="${fs} $(echo .[0-z]*)"
5555
fi
5656
for f in ${fs}; do
57-
touch -h -t 197001010000.00 "${f}"
58-
if [ -d "${f}" ]; then
59-
cd "${f}"
57+
touch -h -t 197001010000.00 "./${f}"
58+
if [ -d "./${f}" ]; then
59+
cd "./${f}"
6060
reset_timestamp
6161
cd ..
6262
fi

0 commit comments

Comments
 (0)