bugfix: copy .nanorc to root
This commit is contained in:
parent
6a481dffc6
commit
bc030e2669
2 changed files with 11 additions and 7 deletions
|
|
@ -2,13 +2,17 @@
|
|||
dir=$(pwd)
|
||||
|
||||
# overlay our directories
|
||||
test -n "$BROWSER" && test -f /.nano || {
|
||||
run(){
|
||||
test -f /.nano || {
|
||||
find . -type d -mindepth 1 | while read dir; do
|
||||
cp -d -r ./$dir/* /$dir/.
|
||||
done
|
||||
echo 1 > /.nano
|
||||
cp ./root/.nanorc ~/.
|
||||
echo "[i] imported overlay fs"
|
||||
echo "[i] editor 'nano' installed" | logger
|
||||
}
|
||||
}
|
||||
|
||||
test -n "$BROWSER" && run
|
||||
|
||||
|
|
|
|||
Binary file not shown.
Loading…
Add table
Reference in a new issue