File: 01_no_bashisms.patch

package info (click to toggle)
aoetools 36-5
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 464 kB
  • sloc: ansic: 1,506; sh: 627; makefile: 54
file content (13 lines) | stat: -rw-r--r-- 307 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
Subject: This patch avois calling directly to /bin/sh.
Author: David Martínez Moreno <ender@debian.org>

--- a/aoe-mkdevs
+++ b/aoe-mkdevs
@@ -56,6 +56,6 @@
 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