[__sensible_editor] Fix SC2028

remotes/origin/build/support-pip-from-git
Dennis Camera 6 years ago
parent 9567826dc1
commit e462821e46
  1. 2
      cdist/conf/type/__sensible_editor/explorer/editor_path

@ -30,7 +30,7 @@ die() {
editor_missing() { die "Editor '$1' is missing on the target system."; }
editor_no_alternative() {
die "Editor '$1' is not in the alternatives list of the target system." \
"$(test "${editors}" && echo "\nPlease choose one of:\n\n${editors}")"
"$(test -n "${editors}" && printf '\nPlease choose one of:\n\n%s\n' "${editors}")"
}
# No need to check for the path if the file is supposed to be removed.

Loading…
Cancel
Save