Skip to content

Commit

Permalink
fix mounts with hyphen
Browse files Browse the repository at this point in the history
  • Loading branch information
macropin committed Oct 4, 2018
1 parent d37d0f9 commit 0b042bf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion jessie/entry.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ run_mountfile() {

while read -r line || [[ -n "${line}" ]]; do
if [[ -z "${line}" ]] || [[ "${line}" == \#* ]]; then continue; fi
[[ "${line}" =~ ([[:alnum:]/\.]*)[[:space:]]?:[[:space:]]?(.*) ]]
[[ "${line}" =~ ([[:alnum:]/\.-]*)[[:space:]]?:[[:space:]]?(.*) ]]
remote_dir="${BASH_REMATCH[1]}"
mount_dir="${BASH_REMATCH[2]}"
(>&1 echo "Mounting remote path ${remote_dir} => ${mount_dir}")
Expand Down
2 changes: 1 addition & 1 deletion stretch/entry.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ run_mountfile() {

while read -r line || [[ -n "${line}" ]]; do
if [[ -z "${line}" ]] || [[ "${line}" == \#* ]]; then continue; fi
[[ "${line}" =~ ([[:alnum:]/\.]*)[[:space:]]?:[[:space:]]?(.*) ]]
[[ "${line}" =~ ([[:alnum:]/\.-]*)[[:space:]]?:[[:space:]]?(.*) ]]
remote_dir="${BASH_REMATCH[1]}"
mount_dir="${BASH_REMATCH[2]}"
(>&1 echo "Mounting remote path ${remote_dir} => ${mount_dir}")
Expand Down

0 comments on commit 0b042bf

Please sign in to comment.