ktwrd / beans-rs

Open-Source Installer for Sourcemods
GNU General Public License v3.0
7 stars 1 forks source link

[linux] support checking free space on root drive #24

Closed Jan200101 closed 4 months ago

Jan200101 commented 4 months ago

/var/tmp/beans-rs is stored on / on my system so the check keeps removing paths until we end up with / which is shorter than 2 causing a check failure.

Checking if its empty should be better.

Also removes the needless clone, transfering ownership when remove_path_head is invoked, since it allocates a new string.