summaryrefslogtreecommitdiff
path: root/extra/config/lxdialog/check-lxdialog.sh
diff options
context:
space:
mode:
Diffstat (limited to 'extra/config/lxdialog/check-lxdialog.sh')
-rwxr-xr-xextra/config/lxdialog/check-lxdialog.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/extra/config/lxdialog/check-lxdialog.sh b/extra/config/lxdialog/check-lxdialog.sh
index 62e1e0212..5552154cb 100755
--- a/extra/config/lxdialog/check-lxdialog.sh
+++ b/extra/config/lxdialog/check-lxdialog.sh
@@ -36,8 +36,10 @@ trap "rm -f $tmp" 0 1 2 3 15
# Check if we can link to ncurses
check() {
- echo -e " #include CURSES_LOC \n main() {}" |
- $cc -xc - -o $tmp 2> /dev/null
+ $cc -xc - -o $tmp 2>/dev/null <<'EOF'
+#include CURSES_LOC
+main() {}
+EOF
if [ $? != 0 ]; then
echo " *** Unable to find the ncurses libraries or the" 1>&2
echo " *** required header files." 1>&2