Closed fiftydinar closed 1 week ago
Shouldn't it be two separate if conditions ? Both the files have to be there and the second branch (elif) gets evaluated only when the first branch (if) is not true
Like this:
if [ ! -f "/usr/share/bluebuild/default-flatpaks/system/install" ]; then cp -r "$MODULE_DIRECTORY"/default-flatpaks/config/system/install /usr/share/bluebuild/default-flatpaks/system/install fi if [ ! -f "/usr/share/bluebuild/default-flatpaks/system/remove" ]; then cp -r "$MODULE_DIRECTORY"/default-flatpaks/config/system/remove /usr/share/bluebuild/default-flatpaks/system/remove fi
I apologize, you're right, I fixed it.
Shouldn't it be two separate if conditions ? Both the files have to be there and the second branch (elif) gets evaluated only when the first branch (if) is not true
Like this: