summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xfunctions/aliases.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/functions/aliases.sh b/functions/aliases.sh
index 5d8b1cead..3df028f61 100755
--- a/functions/aliases.sh
+++ b/functions/aliases.sh
@@ -36,6 +36,9 @@ Truncate ()
{
for FILE in ${@}
do
- : > ${FILE}
+ if [ ! -L ${FILE} ]
+ then
+ : > ${FILE}
+ fi
done
}