Skip to content

Commit

Permalink
sprunge: make the $cache symlinks conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
grawity committed Sep 11, 2016
1 parent c0d2d05 commit 8930e9a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion devel/pull
Expand Up @@ -260,7 +260,7 @@ do_main() {
done

if (( errors && depth == 1 )); then
(err "$errors/$# failed")
(notice "$errors/$# failed")
fi

debug "main[$[depth--],$BASHPID] returning with $errors errors"
Expand Down
4 changes: 3 additions & 1 deletion net/sprunge
Expand Up @@ -15,7 +15,9 @@ seturl() {
else
ks:setattr "$file" sprunge.url "$url" 2>/dev/null
fi
ln -r -s -f "$file" "$cache/${url##*/}.txt"
if [ -d "$cache" ]; then
ln -r -s -f "$file" "$cache/${url##*/}.txt"
fi
}

getsel() {
Expand Down

0 comments on commit 8930e9a

Please sign in to comment.