home · contact · privacy
Fix plomlombot_daemon script.
authorChristian Heller <c.heller@plomlompom.de>
Wed, 19 Dec 2018 23:12:35 +0000 (00:12 +0100)
committerChristian Heller <c.heller@plomlompom.de>
Wed, 19 Dec 2018 23:12:35 +0000 (00:12 +0100)
all_new_2018/user_files/plomlombot_daemon.sh

index a74c24b29f6c79939a8092ae487730f070e956ac..5cf1f6a14bfb23946d67811382fb312e32b62209 100755 (executable)
@@ -41,8 +41,8 @@ while true; do
                 ln -sfn "${logs_dir}" "${irclogs_dir}/${shortened_channel_name}"
                 echo "${login_user}":'{PLAIN}'"${login_pw}" > "${irclogs_pw_dir}/${shortened_channel_name}"
 
-            # If "key:" line, encrypt old raw logs to that GPG key.
-            elif [ "${first_word}" = "gpg_key": ]; then
+            # If "gpg" line, encrypt old raw logs to that GPG key.
+            elif [ "${first_word}" = "gpg_key" ]; then
                 key=$(echo -n "${line}" | cut -d' ' -f2)
                 mkdir -p ~/plomlombot_db
                 cd ~/plomlombot_db