Firefox-UI-Fix/Install.sh
2021-06-02 12:19:40 +09:00

19 lines
343 B
Bash
Executable file

autocopy() {
local file=${1}
local target=${2}
if [ -e "${target}" ]; then
echo "${target} alreay exist."
echo "Now Backup.."
autocopy "${target}" "${target}.bak"
echo""
fi
cp -v "${file}" "${target}"
}
install_lepton() {
local userConfig="user.js"
autocopy "${userConfig}" "../${userConfig}"
}
install_lepton