[enh] Double brackets not needed

This commit is contained in:
Maniack Crudelis 2019-04-09 19:13:14 +02:00 committed by GitHub
parent e9aed65b0c
commit 55f8ffb2c9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -169,7 +169,7 @@ ynh_setup_source () {
local src_file_path="$YNH_CWD/../conf/${source_id}.src"
# In case of restore script the src file is in an other path.
# So try to use the restore path if the general path point to no file.
if [[ ! -e "$src_file_path" ]]; then
if [ ! -e "$src_file_path" ]; then
src_file_path="$YNH_CWD/../settings/conf/${source_id}.src"
fi