log extract :
/usr/sbin/run-postinsts: line 57: /var/log/postinstall.log: Invalid argument
Change-Id: If5f75f9fcdf8a9fe83ef5fe61acb38df0a0b16ef
Signed-off-by: Baptiste DURAND <baptiste.durand@gmail.com>
for i in `ls $pi_dir`; do
i=$pi_dir/$i
echo "Running postinst $i..."
for i in `ls $pi_dir`; do
i=$pi_dir/$i
echo "Running postinst $i..."
- [ "$POSTINST_LOGGING" = "1" ] && eval echo "Running postinst $i..." $append_log
+ [ "$POSTINST_LOGGING" = "1" ] && eval echo "Running postinst $i..." \$append_log
- eval sh -c $i $append_log
+ eval sh -c $i \$append_log
rm $i
else
echo "ERROR: postinst $i failed."
rm $i
else
echo "ERROR: postinst $i failed."
- [ "$POSTINST_LOGGING" = "1" ] && eval echo "ERROR: postinst $i failed." $append_log
+ [ "$POSTINST_LOGGING" = "1" ] && eval echo "ERROR: postinst $i failed." \$append_log
if $pm_installed; then
case $pm in
"ipk")
if $pm_installed; then
case $pm in
"ipk")
- eval opkg-cl configure $append_log
+ eval opkg-cl configure \$append_log
- eval dpkg --configure -a $append_log
+ eval dpkg --configure -a \$append_log