[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#445997: live-helper: lh_binary_disk `` to $() change $$ is a token



Package: live-helper
Version: 1.0~a30-1
Severity: serious

This change from a29 is broken since $$ is shellspeak for getpid().

Purging configuration files for memtest86+ ...
/usr/bin/lh_binary_disk: eval: line 60: syntax error near unexpected token `('
/usr/bin/lh_binary_includes: eval: line 139: syntax error near unexpected token `('

--- ./live-helper-1.0~a29/helpers/lh_binary_disk        2007-09-23 10:18:28.000000000 -0400
+++ ./live-helper-1.0~a30/helpers/lh_binary_disk        2007-10-04 08:22:36.000000000 -0400
@@ -54,10 +54,10 @@

 mkdir -p binary/.disk

-ARCHITECTURE="`echo ${LH_ARCHITECTURE} | sed -e 's# #/#g'`"
-DISTRIBUTION="`echo ${LH_DISTRIBUTION} | cut -b 1 | tr '[a-z]' '[A-Z]'`"
-DISTRIBUTION="${DISTRIBUTION}`echo ${LH_DISTRIBUTION} | cut -b 2-`"
-eval VERSION="$`echo VERSION_${LH_DISTRIBUTION}`"
+ARCHITECTURE="$(echo ${LH_ARCHITECTURE} | sed -e 's# #/#g')"
+DISTRIBUTION="$(echo ${LH_DISTRIBUTION} | cut -b 1 | tr '[a-z]' '[A-Z]')"
+DISTRIBUTION="${DISTRIBUTION}$(echo ${LH_DISTRIBUTION} | cut -b 2-)"
+eval VERSION="$$(echo VERSION_${LH_DISTRIBUTION})"

 if [ "${LH_DISTRIBUTION}" != "etch" ]
 then







Reply to: