mirror of
https://github.com/rwxrob/dot
synced 2024-11-16 21:25:29 +00:00
8 lines
199 B
Bash
Executable File
8 lines
199 B
Bash
Executable File
#!/bin/sh
|
|
|
|
path=/media/$USER
|
|
first=$(ls -1 $path | head -1)
|
|
mpoint=$path/$first
|
|
[ -z "$first" ] && tell 'Nothing to eject.' && exit
|
|
umount $mpoint && tell "$first ejected" || tell 'Could not eject.'
|