mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-03 11:02:05 +00:00
Hint at usage if called without parameters
svn path=/nixpkgs/trunk/; revision=22159
This commit is contained in:
parent
6c4cb05613
commit
5d10c4f9b9
|
@ -6,6 +6,11 @@ own_dir="$(cd "$(dirname "$0")"; sh -c pwd)"
|
|||
|
||||
source "$own_dir/snippets.sh"
|
||||
|
||||
[ -z "$1" ] && {
|
||||
echo "Specify main expression filename."
|
||||
exit 1;
|
||||
}
|
||||
|
||||
main_file="$1"
|
||||
main_dir="$(cd "$(dirname "$main_file")" ; sh -c pwd)"
|
||||
file_name="$(basename "$main_file")"
|
||||
|
|
Loading…
Reference in a new issue