Updates reference config with a bunch of os and shell safety. #1

Merged
maj merged 6 commits from machines/spider into main 2026-09-04 00:19:08 +00:00
2 changed files with 3 additions and 3 deletions
Showing only changes of commit 2ab2c2fb08 - Show all commits

View File

@@ -6,8 +6,8 @@ source "$SCRIPT_DIR/install_files"
cd "$SCRIPT_DIR" || exit 1
for file in "${IMPORT_FILES[@]}"; do
if [ -e "../$file" ] || [ -L "../$file" ]; then
cp -r "../$file" ./
if [ -e "$HOME/$file" ] || [ -L "$HOME/$file" ]; then
cp -r "$HOME/$file" ./
fi
done

View File

@@ -8,7 +8,7 @@ cd "$SCRIPT_DIR" || exit 1
# Copy files and directories
for file in "${INSTALL_FILES[@]}"; do
if [ -e "./$file" ] || [ -L "./$file" ]; then
cp -r "./$file" ../
cp -r "./$file" "$HOME/"
fi
done