File tree 1 file changed +3
-5
lines changed
1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -32,6 +32,7 @@ echo ""
32
32
33
33
# Attempt to adjust permissions without priviledge elevation
34
34
if ! chown -R " $USER " : . 2> /dev/null; then
35
+ CHOWN_ERROR=true
35
36
36
37
# Check for privilege elevation tools (doas or sudo)
37
38
if command -v doas & > /dev/null; then
@@ -43,16 +44,13 @@ if ! chown -R "$USER": . 2>/dev/null; then
43
44
fi
44
45
45
46
# Attempt to adjust permissions with priviledge elevation
46
- CHOWN_ERROR=false
47
47
if [ -n " $SUDO " ]; then
48
48
echo -e " ${BOLD} Attempting to adjust permissions with elevated privileges.${NC} "
49
49
echo -e " ${BOLD} Please provide your password so we can make some final adjustments to your application's permissions.${NC} "
50
50
echo " "
51
- if ! $SUDO chown -R " $USER " : . 2> /dev/null; then
52
- CHOWN_ERROR=true
51
+ if $SUDO chown -R " $USER " : . 2> /dev/null; then
52
+ CHOWN_ERROR=false
53
53
fi
54
- else
55
- CHOWN_ERROR=true
56
54
fi
57
55
58
56
# If applicable, print permissions adjustment error and exit
You can’t perform that action at this time.
0 commit comments