01_no_bashisms.patch 321 B

1234567891011121314
  1. Subject: This patch avois calling directly to /bin/sh.
  2. Author: David Martínez Moreno <ender@debian.org>
  3. Forwarded: no
  4. --- a/aoe-mkdevs
  5. +++ b/aoe-mkdevs
  6. @@ -56,6 +56,6 @@
  7. mkshelf=`echo $0 | sed 's!mkdevs!mkshelf!'`
  8. i=0
  9. while test $i -lt $n_shelves; do
  10. - sh $mkshelf $dir $i
  11. + $mkshelf $dir $i
  12. i=`expr $i + 1`
  13. done