Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions scripts/leappinspector/completion/leapp-inspector.bash
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ _get_dbfile() {
local use_next=0
for word in "${COMP_WORDS[@]}"; do
if [[ "$use_next" == "1" ]]; then
[[ -e "$word" ]] || return 1
# Check if file exists, but still return the path
Copy link
Member

@pirat89 pirat89 Sep 6, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

actually it means that function is behaving differently in comparison to the description and expactations. also you can see that script is failing on python error as it's failing on the leapp-inspector script execution. The clean solution would be just adding a log error instead.

Similarly in the other case.

echo "$word"
return 0
fi
Expand All @@ -40,7 +40,7 @@ _get_context() {
local use_next=0
for word in "${COMP_WORDS[@]}"; do
if [[ "$use_next" == "1" ]]; then
[[ -e "$word" ]] || return 1
# Check if file exists, but still return the path
echo "$word"
return 0
fi
Expand Down