vasi / squashfuse

FUSE filesystem to mount squashfs archives
Other
288 stars 66 forks source link

Is it possible to use relative paths? #45

Closed ghost closed 3 years ago

ghost commented 3 years ago

Hello, sorry if this is stupid, I'm trying to run squashfuse on relative path. The absolute path is working but I need it to be relative. When running on relative it's not detecting the .squashfs file at all.

probonopd commented 3 years ago

Please post an example to reproduce.

ghost commented 3 years ago

I want to compress a game.

I made a separate directory for squash. squash/squashfuse is a file that I can use as replacement for having squashfuse installed, it works when using absolute path. /share/data is the mounting location.

A friend said to use this command inside the start.sh file.

cd "`dirname "$0"`"/Torchlight
squash/squashfuse squash/data.squashfs /share/data

The log shows:

./start.sh: line 9: cd: ./Torchlight: No such file or directory
./start.sh: line 10: /squash/squashfuse: No such file or directory
vasi commented 3 years ago

This is a problem with your script, it looks like the first line (which doesn't even mention squashfuse) isn't correct given your current directory. Squashfuse definitely works with relative paths.

Sorry! Hope your friend can help you debug your script.