Fix --list-only
This commit is contained in:
@@ -44,6 +44,7 @@ command -v ssh-keygen >/dev/null || die "ssh-keygen not found"
|
|||||||
|
|
||||||
while IFS= read -r line || [ -n "$line" ]; do
|
while IFS= read -r line || [ -n "$line" ]; do
|
||||||
line="${line%%#*}"
|
line="${line%%#*}"
|
||||||
|
line="${line//$'\r'/}"
|
||||||
[ -z "${line// /}" ] && continue
|
[ -z "${line// /}" ] && continue
|
||||||
read -r name method host user auth shares <<< "$line"
|
read -r name method host user auth shares <<< "$line"
|
||||||
[ -n "$name" ] || continue
|
[ -n "$name" ] || continue
|
||||||
|
|||||||
@@ -326,6 +326,7 @@ log "Starting migration. dest=$DEST_ROOT dry_run=$DRY_RUN list_only=$LIST_ONLY"
|
|||||||
running=0
|
running=0
|
||||||
while IFS= read -r line || [ -n "$line" ]; do
|
while IFS= read -r line || [ -n "$line" ]; do
|
||||||
line="${line%%#*}"
|
line="${line%%#*}"
|
||||||
|
line="${line//$'\r'/}"
|
||||||
[ -z "${line// /}" ] && continue
|
[ -z "${line// /}" ] && continue
|
||||||
read -r name method host user auth shares <<< "$line"
|
read -r name method host user auth shares <<< "$line"
|
||||||
[ -n "$name" ] || continue
|
[ -n "$name" ] || continue
|
||||||
|
|||||||
Reference in New Issue
Block a user