aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsbodl3
1 files changed, 3 insertions, 0 deletions
diff --git a/sbodl b/sbodl
index 397507b..cb07716 100755
--- a/sbodl
+++ b/sbodl
@@ -267,6 +267,9 @@ for dl in $DL; do
else
wget $EXTRAWGETARGS $WGETARGS "$dl" || die "Download failed, try '$SELF -a'."
if [ -e "$FILE" ]; then
+ # the chown keeps sbrun sudo users from having root-owned
+ # files in ~/sbodl-cache.
+ chown --reference="$CACHEDIR" "$FILE" &>/dev/null
mv -b "$FILE" "$CACHEDIR"
ln -s "$CACHEDIR/$FILE" "$FILE"
fi