summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Cady <d@jerkface.net>2023-05-30 19:04:11 -0400
committerAndrew Cady <d@jerkface.net>2023-05-30 19:04:49 -0400
commit2b51c9e775b6f8c3a1c37bd78fa7c6e6cb575033 (patch)
tree124dc8e4849d955c26abb3a834c063147ce15cab
parent30e67c848e40524eee11f860baeb59dd9e59df93 (diff)
whitespace fix only
-rwxr-xr-xsrc/btrfs-scan56
1 files changed, 28 insertions, 28 deletions
diff --git a/src/btrfs-scan b/src/btrfs-scan
index 85b1e63..2e83f1a 100755
--- a/src/btrfs-scan
+++ b/src/btrfs-scan
@@ -41,33 +41,33 @@ is_our_snapshot()
41 41
42filter_blacklist() 42filter_blacklist()
43{ 43{
44 if is_our_snapshot "$path_fixed" 44 if is_our_snapshot "$path_fixed"
45 then 45 then
46 if [ -e "$conf_name" ] 46 if [ -e "$conf_name" ]
47 then 47 then
48 printf '%20s %s\n' delete "$conf_name" >&2 48 printf '%20s %s\n' delete "$conf_name" >&2
49 printf '%20s %s\n' '(snapshot) lose' "$path_fixed" >&2 49 printf '%20s %s\n' '(snapshot) lose' "$path_fixed" >&2
50 fi 50 fi
51 return 51 return
52 52
53 # Re-reading the blacklist file once per snapshot is not ideal, 53 # Re-reading the blacklist file once per snapshot is not ideal,
54 # but is fine. 54 # but is fine.
55 elif [ "$blacklist" -a -f "$blacklist" ] 55 elif [ "$blacklist" -a -f "$blacklist" ]
56 then 56 then
57 while read pattern 57 while read pattern
58 do 58 do
59 if [[ $path_fixed == $pattern ]] 59 if [[ $path_fixed == $pattern ]]
60 then 60 then
61 if [ -e "$conf_name" ] 61 if [ -e "$conf_name" ]
62 then 62 then
63 printf '%20s %s\n' delete "$conf_name" >&2 63 printf '%20s %s\n' delete "$conf_name" >&2
64 fi 64 fi
65 printf '%20s %s\n' '(blacklist) lose' "$path_fixed" >&2 65 printf '%20s %s\n' '(blacklist) lose' "$path_fixed" >&2
66 return 66 return
67 fi 67 fi
68 done < "$blacklist" 68 done < "$blacklist"
69 fi 69 fi
70 "$@" 70 "$@"
71} 71}
72 72
73compute_paths() 73compute_paths()
@@ -143,7 +143,7 @@ do
143done 143done
144 144
145destination_file=/etc/btrfs/destination.txt 145destination_file=/etc/btrfs/destination.txt
146[ "$DESTINATION" ] || read DESTINATION <"$destination_file" 146[ "$DESTINATION" ] || read DESTINATION < "$destination_file"
147 147
148destination_host=${DESTINATION%%:*} 148destination_host=${DESTINATION%%:*}
149destination_basename=$(hostname) && [ "$destination_basename" ] || destination_basename=btrfs 149destination_basename=$(hostname) && [ "$destination_basename" ] || destination_basename=btrfs