Remove the inadyn commit from the completion file

This commit is contained in:
Bob Mottram 2018-05-12 18:38:11 +01:00
parent 285e7b453b
commit 27a83a9286
1 changed files with 4 additions and 0 deletions

View File

@ -485,6 +485,10 @@ function install_dynamicdns {
return
fi
if grep -q "INADYN_COMMIT" "$COMPLETION_FILE"; then
sed -i '/INADYN_COMMIT/d' "$COMPLETION_FILE"
fi
CURR_INADYN_COMMIT=$(get_completion_param "inadyn commit")
echo "************ 3 $CURR_INADYN_COMMIT $INADYN_COMMIT"
if [[ "${CURR_INADYN_COMMIT}" == "${INADYN_COMMIT}" ]]; then