diff --git a/System/ejector.5s.sh b/System/ejector.5s.sh index 7614e31c0..ea7ddf32e 100755 --- a/System/ejector.5s.sh +++ b/System/ejector.5s.sh @@ -8,7 +8,7 @@ # https://raw.githubusercontent.com/carlsonorozco/ejector/master/image.png # https://github.com/carlsonorozco/ejector -drives=( $(df -Hl | grep /Volumes/ | sed 's/.*\/Volumes\/*//') ) +drives=( $(df -Hl | grep /Volumes/ | grep -v "/System/Volumes/Data" | grep -v "/Volumes/Recovery" | sed 's/.*\/Volumes\/*//') ) IFS=$'**********' for details in $( diskutil info -all ); do @@ -86,7 +86,7 @@ if [ ${#drives[@]} = 0 ]; then exit fi -echo "⏏ | color=black" +echo "⏏" echo '---' IFS=$'**********' @@ -104,12 +104,12 @@ for details in $( diskutil info -all ); do [[ $protocol = 'USB' ]] && ((total_usb++)) if [ "$mount_point" != '' ]; then - echo "$name | color=black bash='$0' param1=eject param2='$mount_point' terminal=false" - echo "$name [unmount] | alternate=true color=black bash='$0' param1=unmount param2='$mount_point' terminal=false" + echo "$name | bash='$0' param1=eject param2='$mount_point' terminal=false" + echo "$name [unmount] | alternate=true bash='$0' param1=unmount param2='$mount_point' terminal=false" echo "├─ Available: $free_space" echo "└─ Capacity: $total_size" else - echo "$name | color=black bash='$0' param1=mount param2=$device_node terminal=false" + echo "$name | bash='$0' param1=mount param2=$device_node terminal=false" echo "└─ Unmounted: $device_node" fi done @@ -119,4 +119,4 @@ if [ ${#drives[@]} -ge 2 ]; then [ $((total_dmg)) -ge 2 ] && echo "Eject All Disk Images | color=red bash='$0' param1=ejectall param2=dmgs terminal=false" [ $((total_usb)) -ge 2 ] && echo "Eject All Physical Volumes | color=red bash='$0' param1=ejectall param2=usbs terminal=false" echo "Eject All | color=red bash='$0' param1=ejectall terminal=false" -fi \ No newline at end of file +fi