summaryrefslogtreecommitdiffstats
path: root/bin/etc-update
diff options
context:
space:
mode:
Diffstat (limited to 'bin/etc-update')
-rwxr-xr-xbin/etc-update4
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/etc-update b/bin/etc-update
index 794271ff4..1edc91fab 100755
--- a/bin/etc-update
+++ b/bin/etc-update
@@ -676,7 +676,9 @@ if [[ ${using_editor} == "0" ]] ; then
die "'${diff_command}' does not seem to work, aborting"
fi
else
- if ! cmd_var_is_valid "${diff_command}" ; then
+ # NOTE: cmd_var_is_valid doesn't work with diff_command="eval emacs..."
+ # because it uses type -P.
+ if ! type ${diff_command%%[[:space:]]*} >/dev/null; then
die "'${diff_command}' does not seem to work, aborting"
fi
fi