mirror of
https://github.com/Unimatrix0/update_ombi.git
synced 2025-08-20 13:24:20 -07:00
Use ${var:?} to ensure this never expands to /* .
https://github.com/koalaman/shellcheck/wiki/SC2115
This commit is contained in:
parent
2be16cb034
commit
1015fe5184
1 changed files with 3 additions and 3 deletions
|
@ -99,7 +99,7 @@ unzip-strip() (
|
||||||
cp -r "$temp"/*/* "$dest"
|
cp -r "$temp"/*/* "$dest"
|
||||||
else
|
else
|
||||||
cp -r "$temp"/* "$dest"
|
cp -r "$temp"/* "$dest"
|
||||||
fi && rm -rf "$temp"/* "$temp"
|
fi && rm -rf "${temp:?}"/* "$temp"
|
||||||
)
|
)
|
||||||
|
|
||||||
# Import any custom config to override the defaults, if necessary
|
# Import any custom config to override the defaults, if necessary
|
||||||
|
@ -314,7 +314,7 @@ else
|
||||||
fi
|
fi
|
||||||
|
|
||||||
.log 6 "Cleaning up..."
|
.log 6 "Cleaning up..."
|
||||||
rm -rf "$tempdir"/* "$tempdir"
|
rm -rf "${tempdir:?}"/* "$tempdir"
|
||||||
declare -i elapsedtime=$SECONDS
|
declare -i elapsedtime=$SECONDS
|
||||||
declare -i minutes=0
|
declare -i minutes=0
|
||||||
declare -i seconds=0
|
declare -i seconds=0
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue