mirror of
https://github.com/Matir/skel.git
synced 2026-05-26 13:35:42 -07:00
Make all install variables function-local.
This commit is contained in:
@@ -51,6 +51,7 @@ function prerequisites {
|
|||||||
|
|
||||||
function install_dotfile_dir {
|
function install_dotfile_dir {
|
||||||
local SRCDIR="${1}"
|
local SRCDIR="${1}"
|
||||||
|
local dotfile
|
||||||
find "${SRCDIR}" \( -name .git -o \
|
find "${SRCDIR}" \( -name .git -o \
|
||||||
-path "${SRCDIR}/private_dotfiles" -o \
|
-path "${SRCDIR}/private_dotfiles" -o \
|
||||||
-name install.sh -o \
|
-name install.sh -o \
|
||||||
@@ -67,6 +68,7 @@ function install_dotfile_dir {
|
|||||||
function install_basic_dir {
|
function install_basic_dir {
|
||||||
local SRCDIR="${1}"
|
local SRCDIR="${1}"
|
||||||
local DESTDIR="${2}"
|
local DESTDIR="${2}"
|
||||||
|
local file
|
||||||
find "${SRCDIR}" -type f -print | \
|
find "${SRCDIR}" -type f -print | \
|
||||||
while read file ; do
|
while read file ; do
|
||||||
local TARGET="${2}/${file#${SRCDIR}/}"
|
local TARGET="${2}/${file#${SRCDIR}/}"
|
||||||
|
|||||||
Reference in New Issue
Block a user