Files
dotfiles/scripts/shell/job/gp/disable-dbversion-check-on-software-info-file.sh
2024-03-28 13:26:01 -03:00

11 lines
249 B
Bash
Executable File

#!/bin/bash
filename='software-info.xml'
if [ ! -f "$filename" ]; then
echo "Could not find the file \"$filename\" in the current directory."
exit 1
fi
xmlstarlet ed --inplace --update '//attribute[@name="version"]' --value "." $filename