mirror of
https://github.com/black7375/Firefox-UI-Fix.git
synced 2025-12-06 02:30:54 -08:00
19 lines
343 B
Bash
Executable file
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
|