ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/pack/ubuntu/common
Revision: 61
Committed: 2008-11-29T05:05:57-08:00 (16 years, 6 months ago) by douglas
Content type: text/x-sh
File size: 289 byte(s)
Log Message:
Scripts!

File Contents

# Content
1 #!/usr/bin/env bash
2 # Ubuntu Common
3 #
4 # Douglas Thrift
5 #
6 # $Id$
7
8 shopt -s extglob
9
10
11 if [[ $# -ne 1 ]] || [[ ! -d $1 ]]; then
12 echo "Usage: $0 [package]"
13 exit 2
14 fi
15
16 package=${1%%+(/)}
17 directories=($package/*/)
18 directory=${directories[$((${#directories[*]} - 1))]%%+(/)}
19
20 unset directories

Properties

Name Value
svn:keywords Id
svn:mime-type text/x-sh