bugfix: copy .nanorc to root
This commit is contained in:
parent
6a481dffc6
commit
bc030e2669
2 changed files with 11 additions and 7 deletions
18
nano/.env
18
nano/.env
|
|
@ -2,13 +2,17 @@
|
||||||
dir=$(pwd)
|
dir=$(pwd)
|
||||||
|
|
||||||
# overlay our directories
|
# overlay our directories
|
||||||
test -n "$BROWSER" && test -f /.nano || {
|
run(){
|
||||||
find . -type d -mindepth 1 | while read dir; do
|
test -f /.nano || {
|
||||||
cp -d -r ./$dir/* /$dir/.
|
find . -type d -mindepth 1 | while read dir; do
|
||||||
done
|
cp -d -r ./$dir/* /$dir/.
|
||||||
echo 1 > /.nano
|
done
|
||||||
echo "[i] imported overlay fs"
|
echo 1 > /.nano
|
||||||
echo "[i] editor 'nano' installed" | logger
|
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