[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#694310: debootstrap: test-exec function does not work on android



Package: debootstrap
Followup-For: Bug #694310

here is a lighter-weight patch

-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: armhf (armv7l)

Kernel: Linux 3.5.4-00581-g5930e52 (PREEMPT)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
>From ca977c0d4d0e6564f54f521aa49ebffe834a50fe Mon Sep 17 00:00:00 2001
From: Shawn Landden <shawnlandden@gmail.com>
Date: Sun, 25 Nov 2012 10:47:55 +0000
Subject: [PATCH] functions: check for /bin/sh before using it in shebang
 (android)

---
 functions |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/functions b/functions
index b450396..881231b 100644
--- a/functions
+++ b/functions
@@ -1300,7 +1300,7 @@ check_sane_mount () {
 	esac
 
 	cat > "$1/test-exec" <<EOF
-#! /bin/sh
+#! `which sh`
 :
 EOF
 	chmod +x "$1/test-exec"
-- 
1.7.10.4


Reply to: