mirror of https://git.envs.net/envs/burrow.git
error checking to create gophermap properly if not created already
This commit is contained in:
parent
28e1831369
commit
d2543cccab
6
burrow
6
burrow
|
@ -307,10 +307,14 @@ make_post_gophermap () {
|
|||
fi
|
||||
fi
|
||||
|
||||
cat "$type_gophermap" >> "$temp_gophermap"
|
||||
if [ -f "$type_gophermap" ]; then
|
||||
cat "$type_gophermap" >> "$temp_gophermap"
|
||||
fi
|
||||
|
||||
if ! $use_date; then
|
||||
sort -fk 1.2 "$temp_gophermap" -o "$temp_gophermap"
|
||||
fi
|
||||
touch "$type_gophermap"
|
||||
cat "$temp_gophermap" > "$type_gophermap"
|
||||
rm "$temp_gophermap"
|
||||
|
||||
|
|
Loading…
Reference in New Issue