23 lines
627 B
Bash
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."
|