Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
deployer
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Gruppo Sistemisti
deployer
Commits
8dd02906
Commit
8dd02906
authored
Nov 18, 2020
by
Mattia Rizzolo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
help shellcheck
Signed-off-by:
Mattia Rizzolo
<
mapreri@ubuntu.com
>
parent
864aa42c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
utils/deploy.sh
utils/deploy.sh
+2
-1
utils/include.sh
utils/include.sh
+4
-0
No files found.
utils/deploy.sh
View file @
8dd02906
...
...
@@ -31,7 +31,8 @@ deploy_switch() {
ln
-sfT
"
${
build
}
"
"
${
current
}
"
# Remove the oldest builds
directories
=(
$(
ls
-t
-d
-1
"
${
base
}
/builds"
/????-??-??--??-??-?? |
awk
"NR>
${
KEEP_BUILDS
}
"
)
)
# shellcheck disable=2012
mapfile
-t
directories < <
(
ls
-t
-d
-1
"
${
base
}
/builds"
/????-??-??--??-??-?? |
awk
"NR>
${
KEEP_BUILDS
}
"
)
for
dir
in
"
${
directories
[@]
}
"
;
do
# Avoid deleting the current build
if
[[
"
${
dir
}
"
!=
"
${
build
}
"
]]
;
then
...
...
utils/include.sh
View file @
8dd02906
...
...
@@ -16,9 +16,13 @@ fi
base
=
"
$(
cd
"
$(
dirname
"
${
BASH_SOURCE
[0]
}
"
)
"
&&
pwd
)
"
# Include all the utilities from the subfiles
# shellcheck disable=1090
.
"
${
base
}
/bzr.sh"
# shellcheck disable=1090
.
"
${
base
}
/git.sh"
# shellcheck disable=1090
.
"
${
base
}
/deploy.sh"
# shellcheck disable=1090
.
"
${
base
}
/macros.sh"
unset
base
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment