Fix can't find file for repository
This commit is contained in:
parent
9253a4b974
commit
56c9740a35
1 changed files with 1 additions and 10 deletions
11
nb_create.sh
11
nb_create.sh
|
|
@ -27,16 +27,14 @@ this_script=$(basename -- $0)
|
|||
USE_PROGRAMME=git
|
||||
|
||||
help() {
|
||||
cat <<EOF
|
||||
cat <<EOF
|
||||
|
||||
Usage: $this_script [OPTIONS] params
|
||||
|
||||
Convenience script to create C/C++ NetBeans projects.
|
||||
Create a generic NetBeans project from a Git repo.
|
||||
Project name, file containing main and a Git repo
|
||||
can be specified using command line options, or
|
||||
defaults can be used.
|
||||
|
||||
Options:
|
||||
-d [--debug]
|
||||
Add extra debugging infos
|
||||
|
|
@ -51,7 +49,6 @@ Options:
|
|||
-r [--repo] <git_repo>
|
||||
The Git repo containing the NetBeans generic C/C++ project
|
||||
Default: /home/benn/share/home/repo/netbeans_proj/netbeans_generic.git
|
||||
|
||||
Licence:
|
||||
$this_script Copyright (C) 2025 Benny Lyons.
|
||||
GNU GPL2 or later; see LICENCE distributed with this file for more details.
|
||||
|
|
@ -161,12 +158,6 @@ main()
|
|||
else
|
||||
REPO="$OPT_REPO"
|
||||
fi
|
||||
if [ ! -d "$REPO" ]; then
|
||||
echo "ERROR: can't find: "$REPO
|
||||
echo "Require a valid Git repository with a NetBeans project"
|
||||
echo "Use -r <path/to/valid/NB/git/repo to speicify one"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
||||
#
|
||||
|
|
|
|||
Loading…
Reference in a new issue