fix: shellcheck tipps
This commit is contained in:
parent
9d6f036ead
commit
43417c1b97
3 changed files with 7 additions and 10 deletions
5
copy.sh
5
copy.sh
|
@ -23,9 +23,8 @@ then
|
|||
/usr/bin/umount /mnt/uploads/
|
||||
|
||||
# if rsync is successful, remove all files
|
||||
if [ "$?" -eq "0" ]
|
||||
then
|
||||
rm -rf rm $SOURCE/*
|
||||
if [ "$?" -eq "0" ]; then
|
||||
rm -rf rm "${SOURCE:?}/"*
|
||||
echo "> synced files have been removed from source"
|
||||
else
|
||||
echo "> error"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue