mirror of
https://github.com/jarun/nnn.git
synced 2025-03-11 17:24:06 +00:00
sync data before ejecting drives
This commit is contained in:
parent
21ee3489c2
commit
0e8cb05045
1 changed files with 1 additions and 0 deletions
|
@ -19,6 +19,7 @@ fi
|
||||||
echo
|
echo
|
||||||
|
|
||||||
if grep -qs "$dev " /proc/mounts; then
|
if grep -qs "$dev " /proc/mounts; then
|
||||||
|
sync
|
||||||
pumount "$dev"
|
pumount "$dev"
|
||||||
if [ "$?" -eq "0" ]; then
|
if [ "$?" -eq "0" ]; then
|
||||||
udisksctl power-off -b /dev/"$dev"
|
udisksctl power-off -b /dev/"$dev"
|
||||||
|
|
Loading…
Add table
Reference in a new issue