13 lines
146 B
Bash
Executable file
13 lines
146 B
Bash
Executable file
#!/bin/sh
|
|
|
|
if [ $# -lt 1 ]
|
|
then
|
|
printf "Unknown\n"
|
|
else
|
|
if [ -f "$1/PROJECT" ]
|
|
then
|
|
head -n 1 "$1/PROJECT"
|
|
else
|
|
printf "%s\n" "$1"
|
|
fi
|
|
fi
|