mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-12-17 00:31:40 +00:00
cleanup and fixes...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
3d20c135c5
commit
5e695db2a3
@ -29,7 +29,7 @@ fi
|
|||||||
|
|
||||||
# check if on btrfs filesystem...
|
# check if on btrfs filesystem...
|
||||||
# XXX also check if btrfs command is available...
|
# XXX also check if btrfs command is available...
|
||||||
if ! btrfs filesystem usage . > /dev/null ; then
|
if ! btrfs filesystem usage . > /dev/null 2>&1 ; then
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -49,7 +49,7 @@ if ! [ -e "$SUBVOLUME_DIR" ] ; then
|
|||||||
# XXX build tree -- ImageGrid
|
# XXX build tree -- ImageGrid
|
||||||
|
|
||||||
# convert ./media to a subvolume...
|
# convert ./media to a subvolume...
|
||||||
elif [ "$(stat --format=%i "$SUBVOLUME_DIR")" == 256 ] ; then
|
elif ! [ "$(stat --format=%i "$SUBVOLUME_DIR")" == 256 ] ; then
|
||||||
mkdir bak
|
mkdir bak
|
||||||
mv "$SUBVOLUME_DIR" bak/
|
mv "$SUBVOLUME_DIR" bak/
|
||||||
btrfs subvolume create "$SUBVOLUME_DIR"
|
btrfs subvolume create "$SUBVOLUME_DIR"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user