change to find search

This commit is contained in:
Dmitry Shibanov
2020-09-23 14:13:02 +03:00
parent c189d7eac0
commit c5aa898cd6

View File

@@ -18,11 +18,7 @@ sudo chmod ugo+rwx /usr/local/opt/$USER/scripts
sudo chown $USER:admin /usr/local/opt/$USER
mv $HOME/image-generation/assets/* /usr/local/opt/$USER/scripts
executableScripts=$(ls /usr/local/opt/$USER/scripts | grep "*\.sh")
for script in $executableScripts
do
chmod +x $script
done
find /usr/local/opt/$USER/scripts -type f -name "*\.sh" -exec chmod +x {} \;
# Clean up npm cache which collected during image-generation
# we have to do that here because `npm install` is run in a few different places during image-generation