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