Skip to content

Commit

Permalink
Remove obsolete clusters from software list #94
Browse files Browse the repository at this point in the history
  • Loading branch information
richelbilderbeek committed Jan 8, 2025
1 parent 8c806d3 commit 1333331
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions scripts/remove_decomissioned_clusters_from_software_table.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#!/bin/bash
#
# Removes all decomissioned clusters from the software table
#
# A hack until https://github.com/UPPMAX/UPPMAX-documentation/issues/93
# is done properly.
#
# Usage:
#
# ./scripts/remove_decomissioned_clusters_from_software_table.sh

if [[ "$PWD" =~ scripts$ ]]; then
echo "FATAL ERROR."
echo "Please run the script from the project root. "
echo "Present working director: $PWD"
echo " "
echo "Tip: like this"
echo " "
echo " ./scripts/remove_decomissioned_clusters_from_software_table.sh"
echo " "
exit 42
fi

sed -i 's/Irma, //g' docs/software/software_table.html
sed -i 's/Miarka, //g' docs/software/software_table.html
sed -i 's/Irma//g' docs/software/software_table.html
sed -i 's/Miarka//g' docs/software/software_table.html

0 comments on commit 1333331

Please sign in to comment.