mirror of
https://github.com/jarun/nnn.git
synced 2025-02-02 14:16:56 +00:00
sync data before ejecting drives
This commit is contained in:
parent
21ee3489c2
commit
0e8cb05045
|
@ -19,6 +19,7 @@ fi
|
|||
echo
|
||||
|
||||
if grep -qs "$dev " /proc/mounts; then
|
||||
sync
|
||||
pumount "$dev"
|
||||
if [ "$?" -eq "0" ]; then
|
||||
udisksctl power-off -b /dev/"$dev"
|
||||
|
|
Loading…
Reference in a new issue