File: 01_no_bashisms.patch

package info (click to toggle)
aoetools 30-3
  • links: PTS
  • area: main
  • in suites: squeeze, wheezy
  • size: 236 kB
  • ctags: 142
  • sloc: ansic: 799; sh: 495; makefile: 65
file content (16 lines) | stat: -rw-r--r-- 420 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# 01_no_bashisms.patch
# 
# This patch avois calling directly to /bin/sh.
#
Index: aoetools-30/aoe-mkdevs
===================================================================
--- aoetools-30.orig/aoe-mkdevs
+++ aoetools-30/aoe-mkdevs
@@ -56,6 +56,6 @@ export n_partitions
 mkshelf=`echo $0 | sed 's!mkdevs!mkshelf!'`
 i=0
 while test $i -lt $n_shelves; do
-	sh $mkshelf $dir $i
+	$mkshelf $dir $i
 	i=`expr $i + 1`
 done