As we reevaluate how to best support and maintain Staging Ref in the future, we encourage development teams using this environment to highlight their use cases in the following issue: https://gitlab.com/gitlab-com/gl-infra/software-delivery/framework/software-delivery-framework-issue-tracker/-/issues/36.

Skip to content
Snippets Groups Projects
Commit 0d51c4f3 authored by Angus MacArthur's avatar Angus MacArthur
Browse files

added optional argument so to override default repo location

parent 5519420e
No related branches found
No related tags found
No related merge requests found
#!/bin/bash
# $1 is an optional argument specifying the location of the repositories directory.
# Defaults to /home/git/repositories if not provided
home_dir="/home/git"
src="$home_dir/repositories"
src=${1:-"$home_dir/repositories"}
for dir in `ls "$src/"`
do
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment