root/ff-luci/trunk/contrib/package/luci-addons/dist/usr/bin/run-parts @ 2371

Revision 2371, 220 bytes (checked in by Cyrus, 5 years ago)

* Minor cleanups

  • Property svn:executable set to *
Line 
1#!/bin/sh
2set +e
3
4if [ $# -lt 1 ]; then
5        echo "Usage: run-parts <dir>"
6        exit 1
7fi
8
9if [ ! -d $1 ]; then
10        echo "Not a directory: $1"
11        exit 1
12fi
13
14for i in $1/*; do
15    [ -x $i ] && $i
16done
17   
18exit 0
Note: See TracBrowser for help on using the browser.