fix(tasyagle-install): avt_env script moved to comply with FHS
authorAndrey Miroshnikov <andrey@technepisteme.xyz>
Thu, 13 Oct 2022 14:12:21 +0000 (15:12 +0100)
committerAndrey Miroshnikov <andrey@technepisteme.xyz>
Thu, 13 Oct 2022 14:12:21 +0000 (15:12 +0100)
tasyagle-install

index 07c26a73dc1e6819bebc6242c1804c15afc62cfd..7e9d8094dc2222dc5f4de53c3ff80b12166936ba 100755 (executable)
@@ -21,13 +21,14 @@ git clone https://git.libre-soc.org/git/tas-yagle.git
 cd tas-yagle
 
 # Specify installation dir
-installDir="/usr/local" ./build.sh
+installDir="/usr/local"
+installDir=$installDir ./build.sh
 
 cd /home/$SUDO_USER/src
 chown -R $SUDO_USER .
 chgrp -R $SUDO_USER .
 
-STRING="source /usr/local/avt_env.sh"
+STRING="source $installDir/bin/avt_env.sh"
 if  grep -q "$STRING" /home/$SUDO_USER/.bashrc ; then
        echo 'avt_env.sh already in .bashrc'
 else