forked from lhndo/ResHelper
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
executable file
·26 lines (19 loc) · 857 Bytes
/
install.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/usr/bin/env bash
source common.sh
echo -e "\nResHelper Installer\n"
check_printdata
confirm_outputdir
if [ -w "${HOME}/printer_data/config/reshelper.cfg" ]; then
echo -e "\n Overwrite reshelper.cfg? y/n "
read ANSWER
case $ANSWER in
[yY]) echo -e "\n Overwriting .."; cp ~/ResHelper/reshelper.cfg ~/printer_data/config/reshelper.cfg;;
[nN]) echo -e "\n Skipping..";;
esac
else
echo -e "\n Copying configuration file to config folder...";
cp ~/ResHelper/reshelper.cfg ~/printer_data/config/reshelper.cfg;
fi
echo -e "\nCleaning old tmp csv files..."
find '/tmp/' -name "resonances_*.csv" -print 2>/dev/null -exec rm {} \;
echo -e "\nResHelper installation complete! \nPlease add [include reshelper.cfg] to your printer.cfg. Enjoy!\n"