Firefox-UI-Fix/Install.sh
2021-06-01 15:21:27 +09:00

19 lines
343 B
Bash

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