]> lifelog.hopto.org Git - LifeLog.git/commitdiff
Updated, to use version variable.
authorWill Budicm <redacted>
Tue, 26 May 2020 10:52:26 +0000 (20:52 +1000)
committerWill Budicm <redacted>
Tue, 26 May 2020 10:52:26 +0000 (20:52 +1000)
install_modules.sh

index 8d857c3409b4438cdaa2070426821cf1778f1968..24f7f9b93d10e3f051a7b2dd00d8359c1bed03ee 100644 (file)
@@ -8,12 +8,14 @@
 # Uncoment the  following git pull if also wanting to perform a latest pull
 # from the master (upgrade) repository.
 ## git pull
-sudo cat Installation.txt | grep 'sudo apt install' > install_lifelog_modules_1.1.8.sh
-sudo cat Installation.txt | grep 'sudo cpan' >> install_lifelog_modules_1.1.8.sh
-sudo chmod +x install_lifelog_modules_1.1.8.sh
+VER="2.0"
+SCRIPT="install_lifelog_modules_$VER.sh"
+sudo cat Installation.txt | grep 'sudo apt install' > $SCRIPT
+sudo cat Installation.txt | grep 'sudo cpan' >> $SCRIPT
+sudo chmod +x $SCRIPT
 # The following is actual installation file generated. Don't run outside this script.
 # You can delete or keep after running this script.
-sudo ./install_lifelog_modules_1.1.8.sh
+sudo ./$SCRIPT
 
 echo "\nDone with Life Log modules installation!\n"