From d42599b2e3bbb2343be0c1d1088455627be5fbf0 Mon Sep 17 00:00:00 2001 From: Fredrik Fornwall Date: Sat, 4 Jul 2015 08:56:47 -0400 Subject: [PATCH] Make list-packages.sh be runnable by sh --- list-packages.sh | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/list-packages.sh b/list-packages.sh index 919a741a6..c83b54017 100755 --- a/list-packages.sh +++ b/list-packages.sh @@ -1,9 +1,8 @@ -#!/usr/bin/env bash +#!/bin/sh # list-packages.sh - tool to list all package with home pages and descriptions -for path in packages/*; do ( - pkg=`basename $path` - . $path/build.sh - echo "$pkg($TERMUX_PKG_VERSION): $TERMUX_PKG_HOMEPAGE" - echo " $TERMUX_PKG_DESCRIPTION" -) done +for path in packages/*; do + export path + export pkg=`basename $path` + bash -c '. $path/build.sh; echo "$pkg($TERMUX_PKG_VERSION): $TERMUX_PKG_HOMEPAGE"; echo " $TERMUX_PKG_DESCRIPTION"' +done