mirror of
ssh://git.janware.com/janware/proj/jw-pkg
synced 2026-04-24 09:13:37 +02:00
pgit.sh: Make PGIT_SH_PROJECTS work on all commands
PGIT_SH_PROJECTS currently only sets the projects to operate on for the get command. Extend this to all commands. And replace the environment variable by a command-line option, likely after this script has been ported to Python. Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
ea968b521b
commit
472bba6fbb
1 changed files with 5 additions and 1 deletions
|
|
@ -60,7 +60,11 @@ set_global_variables()
|
||||||
}
|
}
|
||||||
|
|
||||||
[ "$project_dirs" ] || {
|
[ "$project_dirs" ] || {
|
||||||
project_dirs=`(cd $projects_dir; ls -d */.git 2>/dev/null | sed 's%/.git%%')`
|
if [ "$PGIT_SH_PROJECTS" ]; then
|
||||||
|
project_dirs="$PGIT_SH_PROJECTS"
|
||||||
|
else
|
||||||
|
project_dirs=`(cd $projects_dir; ls -d */.git 2>/dev/null | sed 's%/.git%%')`
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
n_projects=`echo $project_dirs | wc -w`
|
n_projects=`echo $project_dirs | wc -w`
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue