Skip to content

Commit

Permalink
refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
adrelanos committed Mar 31, 2021
1 parent 6d3f8ad commit 1c6695d
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions usr/bin/sandbox-app-launcher
Expand Up @@ -147,8 +147,9 @@ setup() {
if ! [ -d "${dir}" ]; then
echo "ERROR: Directory '${dir}' does not exist. This package was not installed properly." >&2
exit 1
## Fix permissions.
elif ! [ "$(stat -c %a "${dir}")" = "755" ]; then
fi
if ! [ "$(stat -c %a "${dir}")" = "755" ]; then
## Fix permissions.
chmod 755 "${dir}"
fi
done
Expand All @@ -157,8 +158,9 @@ setup() {
if ! [ -d "${shared_dir}" ]; then
echo "ERROR: Directory '${shared_dir}' does not exist. This package was not installed properly." >&2
exit 1
## Fix permissions.
elif ! [ "$(stat -c %a "${shared_dir}")" = "1777" ]; then
fi
if ! [ "$(stat -c %a "${shared_dir}")" = "1777" ]; then
## Fix permissions.
chmod 1777 "${shared_dir}"
fi

Expand Down

0 comments on commit 1c6695d

Please sign in to comment.