Commit e5384691 authored by Dom Sekotill's avatar Dom Sekotill
Browse files

Fix endless recursion by banning relative paths

parent e790c9c9
Loading
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -63,6 +63,7 @@ missing() {
}

copy() {
	[[ $1 =~ ^/ ]] || fatal "paths must be absolute"
	test -e ${STAGE:=$DEFAULT_STAGE}/$1 && return
	if [[ -h $1 ]]; then
		copy_link "$1"