firefox-profile-archiving-unix/install.sh

17 lines
445 B
Bash
Raw Normal View History

2022-03-14 19:45:28 +01:00
#!/usr/bin/env bash
run_directory=$(dirname "$0")
user=$(whoami)
2022-03-14 19:45:28 +01:00
if [ ! -d /home/$user/.bashrc.d ]; then
echo "~/.bashrc.d does not exist. Creating it..."
mkdir /home/$user/.bashrc.d
fi
2022-03-14 19:45:28 +01:00
echo "Copying bashrc-ffarchiving to extensions directory..."
cp $run_directory/templates/bashrc-ffarchiving /home/$user/.bashrc.d/
2022-03-14 19:55:41 +01:00
sed -i -e "s:PH_DIRECTORY:$(pwd):g" /home/$user/.bashrc.d/bashrc-ffarchiving
2022-03-14 19:45:28 +01:00
echo "Finished install. Exiting..."
exit 0