mirror of
https://github.com/msmhq/msm.git
synced 2024-08-30 18:12:35 +00:00
Fixed ramdisk toggle to now delete world from RAM as intended.
This commit is contained in:
parent
bd7cb622bd
commit
61533fa4ac
@ -254,8 +254,8 @@ world_toggle_ramdisk_state() {
|
|||||||
|
|
||||||
if [ -e ${WORLD_STORAGE_PATH}/$1/ramdisk ]
|
if [ -e ${WORLD_STORAGE_PATH}/$1/ramdisk ]
|
||||||
then
|
then
|
||||||
rm ${WORLD_STORAGE_PATH}/$1/ramdisk
|
as_user "rm ${WORLD_STORAGE_PATH}/$1/ramdisk"
|
||||||
rm ${RAMDISK_PATH}/$1
|
as_user "rm -r ${RAMDISK_PATH}/$1"
|
||||||
echo "Removed the RAM flag from \"$1\", and deleted it from RAM."
|
echo "Removed the RAM flag from \"$1\", and deleted it from RAM."
|
||||||
else
|
else
|
||||||
as_user "touch ${WORLD_STORAGE_PATH}/$1/ramdisk"
|
as_user "touch ${WORLD_STORAGE_PATH}/$1/ramdisk"
|
||||||
|
Loading…
Reference in New Issue
Block a user