All pastes #819099 Raw Edit

Anonymous

public shellscript v1 · immutable
·published 2007-12-16 19:51 UTC
rendered paste body
#!/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