-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove obsolete clusters from software list #94
- Loading branch information
1 parent
8c806d3
commit 1333331
Showing
1 changed file
with
27 additions
and
0 deletions.
There are no files selected for viewing
27 changes: 27 additions & 0 deletions
27
scripts/remove_decomissioned_clusters_from_software_table.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |