#!/bin/bash # USAGE: # ./update-version.sh if [ "$1" == "" ] || [ "$2" == "" ] then echo "error: Not enough arguments." echo "usage: ./update-version.sh " exit fi sed -i "s/$1/$2/g" Cargo.toml sed -i "s/$1/$2/g" packages/archlinux/PKGBUILD