mirror of
https://github.com/m-housh/dotfiles.git
synced 2026-02-14 06:12:34 +00:00
Cleaned up some scripts
This commit is contained in:
@@ -10,8 +10,10 @@ uid="$(id -u "$(whoami)")"
|
||||
mkdir -p "$agent_dir"
|
||||
|
||||
for file in "${DOTFILES}"/macOS/LaunchAgents/*.plist; do
|
||||
filename=$(basename "${file}")
|
||||
# get just the base file name, similar to using `basename` but w/o a subshell
|
||||
filename="${file##*/}"
|
||||
path="${agent_dir}/${filename}"
|
||||
echo "$filename"
|
||||
if ! test -e "${path}"; then
|
||||
echo "Installing Agent: ${filename}"
|
||||
cp "${file}" "${path}"
|
||||
|
||||
Reference in New Issue
Block a user