Just spitballing what that might look

Just spitballing what that might look like,
create_symlink() {
local TARGET=$1
local DEST=$2

readlink "${TARGET}" || ln -s "${TARGET}" "${DEST}"

if [[ "$(readlink "${TARGET}")" == "${DEST}" ]]; fi
echo "Symlink \'${TARGET}\' exists for path \'${DEST}\'"
else
echo "Symlink \'${TARGET}\' does not point to path \'${DEST}\'"
fi
}
create_symlink() {
local TARGET=$1
local DEST=$2

readlink "${TARGET}" || ln -s "${TARGET}" "${DEST}"

if [[ "$(readlink "${TARGET}")" == "${DEST}" ]]; fi
echo "Symlink \'${TARGET}\' exists for path \'${DEST}\'"
else
echo "Symlink \'${TARGET}\' does not point to path \'${DEST}\'"
fi
}
3 Replies
imnotdwight
imnotdwight•2y ago
I'm thinking if the issue should be reopened until something like this is implemented or fixed upstream. Until then, can I take this for the custom image i'm maintaining to solve the issue?
jstone
jstoneOP•2y ago
I believe so. If it works for you then we can even try to incorporate this into ublue-os/main
imnotdwight
imnotdwight•2y ago
I'm going to reopen the issue then and try to implement this in my custom image. All the checks passed, I'm now building the image to test. 🤞 confirmed working
Want results from more Discord servers?
Add your server