From f4b54637aa64026c06e6a612769776694a7e09c3 Mon Sep 17 00:00:00 2001 From: maride Date: Sat, 13 Mar 2021 23:23:37 +0100 Subject: [PATCH] Apply access rights to created files based on the original TeX file --- run.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/run.sh b/run.sh index b060ac1..b15531a 100755 --- a/run.sh +++ b/run.sh @@ -43,6 +43,11 @@ if test "$(ls -A /tex)"; then # Set 'current' symlink 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 # Directory is empty echo "$ECHOPREFIX Please mount your directory to /tex"