add .tar for folder uploads

This commit is contained in:
2018-12-03 17:07:31 +02:00
parent e1cd464319
commit 097e81c049
2 changed files with 4 additions and 0 deletions

View File

@@ -85,6 +85,7 @@ _write() {
_write_stdin "$NAME" _write_stdin "$NAME"
} || { } || {
[[ -d "$FILE" ]] && { [[ -d "$FILE" ]] && {
[[ "${NAME,,}" = *".tar" ]] || NAME="${NAME}".tar
_write_folder "$NAME" "$FILE" _write_folder "$NAME" "$FILE"
} || { } || {
_write_file "$NAME" "$FILE" _write_file "$NAME" "$FILE"

3
test/stop-server.sh Executable file
View File

@@ -0,0 +1,3 @@
#!/bin/bash
cd ..
docker-compose down