Anonymous
public shellscript v1 · immutable#!/bin/bashalert() { echo -en "\007" 1>/dev/null 2>&1 }whereis unrar 1>/dev/null 2>&1 || exit 0RAR="$(find "$(pwd)" -maxdepth 1 -type f -iname "*.rar"|head -n 1)"unrar e "${RAR}" 1> /dev/nullif [ $? -eq 0 ] then alert sleep 1 alert sleep 1 alertfi