GR-Jukebox/install.sh
2024-08-06 20:52:02 -04:00

23 lines
627 B
Bash

#!/bin/bash
# Use /bin/bash to run this script, even when called manually
SOURCE_DIR="$HOME/GR-Jukebox"
TARGET_DIR="$HOME"
for file in $SOURCE_DIR/*; do
filename=$(basename "$file")
if [ "$filename" != "install.sh" ]; then
# Move the file
cp -f "$file" "$TARGET_DIR/"
# Check if the file should be executable (modify this condition to fit your needs)
if [[ "$filename" == *.sh || "$filename" == *.py ]]; then
chmod +x "$TARGET_DIR/$filename"
fi
fi
done
crontab crontab_file.txt
echo "Installation complete. All files have been moved to $TARGET_DIR."