# HG changeset patch # User Naus Caligo # Date 1537397539 14400 # Node ID 6110cf824e502f2b5f25430b165a9847ff079009 # Parent d7fdcb1c6a65165702f0f6e613aade65bdf3160b Fix file list command in `update_scope.sh` Prepend `eval` and surround `$FILE_LIST_CMD` with double quotes to make sure the command actually works if there is single or double quotes in the command. For example 'find . -type f -iname "*.php"'. That would fail without the `eval` command. Double quotes are usually needed for when list or pattern is expected, only in a few situation you can omit them safely so I rather put them for safety. diff -r d7fdcb1c6a65 -r 6110cf824e50 plat/unix/update_scopedb.sh --- a/plat/unix/update_scopedb.sh Tue Jun 12 21:57:22 2018 -0700 +++ b/plat/unix/update_scopedb.sh Wed Sep 19 18:52:19 2018 -0400 @@ -62,10 +62,10 @@ if [ -n "${FILE_LIST_CMD}" ]; then if [ "${PROJECT_ROOT}" = "." ]; then - $FILE_LIST_CMD > "${DB_FILE}.files" + eval "$FILE_LIST_CMD" > "${DB_FILE}.files" else # If using a tags cache directory, use absolute paths - $FILE_LIST_CMD | while read -r l; do + eval "$FILE_LIST_CMD" | while read -r l; do echo "${PROJECT_ROOT%/}/${l}" done > "${DB_FILE}.files" fi