diff options
author | Michael Larabel <michael@phx-laptop.(none)> | 2008-08-10 15:49:53 -0400 |
---|---|---|
committer | Michael Larabel <michael@phx-laptop.(none)> | 2008-08-10 15:49:53 -0400 |
commit | b0e1db2a65b954726d06fd77e524704b8bc54b5c (patch) | |
tree | e4432b8679bb16aa6fdb7783a20ea2cbb7fd2b39 | |
parent | 4dd2a22e9c8662f38dceee9271a0830c96a9aed1 (diff) | |
download | phoronix-test-suite-upstream-b0e1db2a65b954726d06fd77e524704b8bc54b5c.tar.gz phoronix-test-suite-upstream-b0e1db2a65b954726d06fd77e524704b8bc54b5c.tar.xz phoronix-test-suite-upstream-b0e1db2a65b954726d06fd77e524704b8bc54b5c.zip |
pts: Fixes for synaptic in install-ubuntu-packages.sh
-rwxr-xr-x | pts/distro-scripts/install-ubuntu-packages.sh | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/pts/distro-scripts/install-ubuntu-packages.sh b/pts/distro-scripts/install-ubuntu-packages.sh index 6df7221..f6aa59e 100755 --- a/pts/distro-scripts/install-ubuntu-packages.sh +++ b/pts/distro-scripts/install-ubuntu-packages.sh @@ -16,7 +16,11 @@ else fi if [ -x /usr/sbin/synaptic ] && [ ! -z "$DISPLAY" ]; then - $ROOT "sh -c 'echo \"$@ install\" | /usr/sbin/synaptic --set-selections --non-interactive --hide-main-window'" + TEMPFILE=`/bin/tempfile` + echo "#!/bin/sh\necho \"$@ install\" | /usr/sbin/synaptic --set-selections --non-interactive --hide-main-window" > $TEMPFILE + chmod +x $TEMPFILE + $ROOT $TEMPFILE + rm -f $TEMPFILE else $ROOT "apt-get -y install $@" fi |