vaultwarden-web/scripts/replace-embedded-svg-icons.sh
2024-03-09 10:55:22 +01:00

20 lines
249 B
Bash
Executable file

#!/bin/bash
if [ ! -f $1 ]
then
echo "$1 does not exist"
exit -1
fi
if [ ! -f $2 ]
then
echo "$2 does not exist"
exit -1
fi
echo "'$1' -> '$2'"
first='`$'
last='^`'
sed -i "/$first/,/$last/{ /$first/{p; r $1
}; /$last/p; d }" $2