00a4664d73
and remove ${LOG}. It's a bit of a useless mechanism and, in fact a hindrance. Why not just let the user redirect stdout?
14 lines
186 B
Bash
14 lines
186 B
Bash
#!/bin/bash
|
|
set -e
|
|
source /etc/profile
|
|
|
|
echo "Cleaning up"
|
|
|
|
rm /script.sh
|
|
|
|
echo 'Removing temporary files...'
|
|
rm -rf /tmp/*
|
|
|
|
echo 'cleaning up distfiles'
|
|
rm -f /usr/portage/distfiles/*
|
|
|