Skip to content

Commit fd5656b

Browse files
committed
fix udpater
1 parent 7679d89 commit fd5656b

1 file changed

Lines changed: 9 additions & 5 deletions

File tree

scripts/updater.sh

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,17 @@ fi
1313
# Check whether this installation is one with deprecated ruby configuration files.
1414
# If so display a big warning that a manual update must be done for the configuration file of the bot.
1515
function upgrade_to_yaml() {
16-
if [ -f $HOME/src/bot1_conf.yml ] && [ -f "${YAML_UPDATE_DONE}" ];
16+
if [ -f "$HOME/src/bot1_conf.yml" ] && [ -f "${YAML_UPDATE_DONE}" ];
1717
then
1818
# Update was already done and new YAML config beside the old .rb config was created
19-
# Nothing to do ...
20-
echo -en "\n\n\nWARNING: REMOVE the old ruby style configuration file \"$HOME/src/bot1_conf.rb\".\n\n"
21-
echo -en "The updater won't run as long as this file was not removed.\n\n"
22-
exit 15
19+
# Do not continue until the old rb configuration file was removed.
20+
21+
if [ -f "$HOME/src/bot1_conf.rb" ];
22+
then
23+
echo -en "\n\n\nWARNING: REMOVE the old ruby style configuration file \"$HOME/src/bot1_conf.rb\".\n\n"
24+
echo -en "The updater won't run as long as this file was not removed.\n\n"
25+
exit 15
26+
fi
2327
else
2428
# Neither the new overwrite config bot1_conf.yml does exist nor the YAML_UPDAT_DONE file.
2529

0 commit comments

Comments
 (0)