Browse Source

Support extrafiles from the same dir as satellite if extrafiles dir doesn't exist

master
mid-kid 8 years ago
parent
commit
ff21aa1138
  1. 5
      astronaut/astronaut
  2. 1
      astronaut/extrafiles/astronaut

5
astronaut/astronaut

@ -192,7 +192,10 @@ getfile() {
} }
extrafile() { extrafile() {
cp -a "$(dirname "$_satellite")/extrafiles/$name/$1" "./$1" local dir="$(dirname "$_satellite")"
[ -d "$dir/extrafiles" ] && local dir="$dir/extrafiles/$name"
cp -a "$dir/$1" "./$1"
} }
dlextract() { dlextract() {

1
astronaut/extrafiles/astronaut

@ -1 +0,0 @@
..
Loading…
Cancel
Save