Apply access rights to created files based on the original TeX file

This commit is contained in:
maride 2021-03-13 23:23:37 +01:00
parent 3e573a9cee
commit f4b54637aa

5
run.sh
View File

@ -43,6 +43,11 @@ if test "$(ls -A /tex)"; then
# Set 'current' symlink # Set 'current' symlink
ln -sf $BUILD ./current-build ln -sf $BUILD ./current-build
# Apply the access rights to build folder as found on the target file
chmod --reference=$TARGET -R $BUILD ./current-build ./last-successful ./last-failed
chmod +x $BUILD
chown --reference=$TARGET -R $BUILD ./current-build ./last-successful ./last-failed
else else
# Directory is empty # Directory is empty
echo "$ECHOPREFIX Please mount your directory to /tex" echo "$ECHOPREFIX Please mount your directory to /tex"