mirror of
https://github.com/calibrain/shelfmark.git
synced 2026-04-19 21:39:17 -04:00
Fix is_writable check (#170)
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user