@@ -100,6 +100,7 @@ generate_config_list() { #* Check the content of a Directory and make a restore
100
100
# restore_directory is the Source directory for Configs
101
101
restore_directory=" ${1:- ${CloneDir} / Configs} "
102
102
# echo "$restore_directory"
103
+ # shellcheck disable=SC2154
103
104
: > " ${ctl_override} "
104
105
# Read the file line by line
105
106
while IFS= read -r line; do
@@ -134,7 +135,7 @@ generate_config_list() { #* Check the content of a Directory and make a restore
134
135
;;
135
136
esac
136
137
done
137
- done < " $( dirname ${restore_directory} ) /Scripts/restore_cfg.lst"
138
+ done < " $( dirname " ${restore_directory} " ) /Scripts/restore_cfg.lst"
138
139
}
139
140
140
141
# shellcheck disable=SC2120
@@ -145,14 +146,14 @@ generate_config_list() { #* Check the content of a Directory and make a restore
145
146
make_List () {
146
147
# enable_package md5sum
147
148
CloneDir=${1:- " ${CloneDir} " }
148
- [ ! -d ${CloneDir} ] && exit 0
149
+ [ ! -d " ${CloneDir} " ] && exit 0
149
150
150
151
# ? If the ctlFile is present and no reuse flag do this
151
152
if [ -e " ${ctlFile} " ] && [[ $* != * " --reuse" * ]]; then
152
153
show_restore_list " ${ctlFile} "
153
154
now_restore_cfg_hash=" $( md5sum " ${CloneDir} /Scripts/restore_cfg.lst" | cut -d' ' -f1) "
154
155
155
- if [ " $now_restore_cfg_hash " != " $restore_cfg_hash " ]; then
156
+ if [ " $now_restore_cfg_hash " != " ${ restore_cfg_hash} " ]; then
156
157
generate_config_list " ${CloneDir} /Configs"
157
158
print_prompt -g " \n\n\nNew Files has been added/removed!" " \nCreate a new control file to avoid conflicts!\n"
158
159
else
0 commit comments