Skip to content
Snippets Groups Projects
Commit ba3aaa5b authored by Walter Lozano's avatar Walter Lozano Committed by Dylan Aïssi
Browse files

fold-security-update-branches: Support NOACT


To align with other scripts support both NOACT env variable and dry-mode
from command line argument.

Signed-off-by: default avatarWalter Lozano <walter.lozano@collabora.com>
parent 581ee104
No related branches found
No related tags found
1 merge request!189Improvements to folding pipeline (2)
......@@ -185,14 +185,17 @@ usage() {
echo "Example: RELEASE='v2021' $0 fold [components...] 2>&1 | tee -a console.log" >&2
}
#If the env var NOACT = 1 set dry run mode
if [ "${NOACT}" = "1" ]
then
DRY_RUN=1
fi
while getopts 'dngor' opt
do
case "$opt" in
d|n)
DRY_RUN=1
RUN="echo +++"
echo "Dry run: not modifying anything!"
;;
g)
CLEAN_GITLAB=1
......@@ -207,6 +210,14 @@ do
done
shift "$(($OPTIND -1))"
if [ "${DRY_RUN}" = "1" ]
then
RUN="echo +++"
echo "Dry run: not modifying anything!"
fi
OSC="$RUN osc"
case "$1" in
gen-pkg-list)
get_packages
......@@ -237,7 +248,6 @@ case "$1" in
esac
shift "$(($OPTIND -1))"
OSC="$RUN osc"
if [ -z "$RELEASE" ]
then
......
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