diff options
| author | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2023-11-23 10:04:02 +0100 |
|---|---|---|
| committer | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2023-11-23 10:04:02 +0100 |
| commit | 0b2f3b104063f940bf17c8f4af9c4300ebd93dc8 (patch) | |
| tree | 45fda876ee6cf9f572349590237c598264964a04 | |
| parent | bf29a79ebea71756b3628f1f7f13d0c07a79ff86 (diff) | |
Use ls -A
This would allow to upload hidden files or directories.
| -rwxr-xr-x | slcl-upload | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/slcl-upload b/slcl-upload index 964aaeb..4191fc5 100755 --- a/slcl-upload +++ b/slcl-upload @@ -83,7 +83,7 @@ upload_dir() { local SRC="$1" local DIR="$2" - local N=$(cd "$1" && ls | wc -l) + local N=$(cd "$1" && ls -A | wc -l) local I=1 test $N -eq 0 && return @@ -133,7 +133,7 @@ upload_dir() I=$(($I + 1)) done <<-EOF - $(cd "$1" && ls) + $(cd "$1" && ls -A) EOF LEVEL=$(($LEVEL - 1)) |
