Skip to content
Snippets Groups Projects
Commit d27d6c20 authored by Daniel Juarez's avatar Daniel Juarez :speech_balloon:
Browse files

Fix GitLab's tabs indentation

parent cb3b1239
No related branches found
No related tags found
1 merge request!10Add script to push updates to repo
......@@ -81,25 +81,25 @@ done
for DIST in $DISTS
do
for REPO in $REPOS
do
do
case $REPO in
"testing")
ADV="/afs/cern.ch/project/linux/www/updates/$DIST/$TODAY-test.file"
REPO_DEST_PATH="updates/$DIST/test/"
;;
"updates")
ADV="/afs/cern.ch/project/linux/www/updates/$DIST/$TODAY.file"
REPO_DEST_PATH="updates/$DIST/prod/"
;;
*)
echo -e $ROUGE "*** $DIST/$REPO not configured to commit updates";
continue
;;
esac
"testing")
ADV="/afs/cern.ch/project/linux/www/updates/$DIST/$TODAY-test.file"
REPO_DEST_PATH="updates/$DIST/test/"
;;
"updates")
ADV="/afs/cern.ch/project/linux/www/updates/$DIST/$TODAY.file"
REPO_DEST_PATH="updates/$DIST/prod/"
;;
*)
echo -e $ROUGE "*** $DIST/$REPO not configured to commit updates";
continue
;;
esac
# Use a temp directory that we later delete
TMPDIR=$(mktemp -d)
# This file would have already been generated by bsmailusers, we only use the production file
if [ ! -s "$ADV" ]; then
echo "There are no updates, no need to commit a file"
exit 0
......@@ -119,12 +119,12 @@ do
i=1
while IFS= read -r LINE
do
test $i -eq 1 && ((i=i+1)) && continue
# Split table variables to ease future css styling if needed, much more readable than one-liners
PACKAGE="$(echo $LINE | awk -F "</*td>|</*tr>" '/<\/*t[rd]>.*/ {print $5}')"
ADVTYPE="$(echo $LINE | awk -F "</*td>|</*tr>" '/<\/*t[rd]>.*/ {print $3}')"
ADVURL="$(echo $LINE | awk -F "</*td>|</*tr>" '/<\/*t[rd]>.*/ {print $7}')"
echo "$PACKAGE | $ADVTYPE $ADVURL | &nbsp;" >> "$TMPDIR"/.updates
test $i -eq 1 && ((i=i+1)) && continue
# Split table variables to ease future css styling if needed, much more readable than one-liners
PACKAGE="$(echo $LINE | awk -F "</*td>|</*tr>" '/<\/*t[rd]>.*/ {print $5}')"
ADVTYPE="$(echo $LINE | awk -F "</*td>|</*tr>" '/<\/*t[rd]>.*/ {print $3}')"
ADVURL="$(echo $LINE | awk -F "</*td>|</*tr>" '/<\/*t[rd]>.*/ {print $7}')"
echo "$PACKAGE | $ADVTYPE $ADVURL | &nbsp;" >> "$TMPDIR"/.updates
done < $ADV
echo >> "$TMPDIR"/.updates
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment