changeset 612:301810fee287

Ahem, _properly_ work around the gentoo thingy.
author Rob Landley <rob@landley.net>
date Sat, 07 Feb 2009 20:35:51 -0600
parents e111467e0476
children 518c8e257b3d
files sources/toys/run-emulator.sh
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/sources/toys/run-emulator.sh	Sat Feb 07 14:38:44 2009 -0600
+++ b/sources/toys/run-emulator.sh	Sat Feb 07 20:35:51 2009 -0600
@@ -98,7 +98,7 @@
   if [ ! -z "$HDBMEGS" ]
   then
     # Some distros don't put /sbin:/usr/sbin in the $PATH for non-root users.
-    [ -z "${which mke2fs}" ] && export PATH=/sbin:/usr/sbin:$PATH
+    [ -z "$(which mke2fs)" ] && export PATH=/sbin:/usr/sbin:$PATH
 
     dd if=/dev/zero of="$HDB" bs=1024 seek=$[$HDBMEGS*1024-1] count=1 &&
     mke2fs -b 1024 -F "$HDB" -i 4096 &&