Fix is_writable check (#170)

This commit is contained in:
CaliBrain
2025-04-28 15:34:15 -04:00
committed by GitHub
parent 5c9962f17b
commit 600605f9c4

View File

@@ -75,9 +75,10 @@ test_write() {
make_writable() {
folder=$1
set +e
is_writable=$(test_write $folder)
test_write $folder
is_writable=$?
set -e
if [ "$is_writable" = "true" ]; then
if [ $is_writable -eq 0 ]; then
echo "Folder $folder is writable, no need to change ownership"
else
echo "Folder $folder is not writable, changing ownership"