remotes/origin/4.10
Darko Poljak 7 years ago
parent 738f053877
commit c01cf38660
  1. 2
      cdist/conf/explorer/disks
  2. 4
      cdist/conf/type/__link/explorer/state

@ -1,3 +1,3 @@
#!/bin/sh
cd /dev
cd /dev || exit 0
echo sd? hd? vd?

@ -32,7 +32,7 @@ destination_dir="${destination%/*}"
case "$type" in
symbolic)
cd "$destination_dir"
cd "$destination_dir" || exit 1
source_is=$(ls -l "$destination" | sed 's/.*-> //g')
if [ -h "$destination" ]; then
# ignore trailing slashes for comparison
@ -46,7 +46,7 @@ case "$type" in
fi
;;
hard)
cd "$destination_dir"
cd "$destination_dir" || exit 1
# check source relative to destination_dir
if [ ! -e "$source" ]; then
echo sourcemissing

Loading…
Cancel
Save