fix read file

This commit is contained in:
Saeed Vaziry
2024-04-14 17:53:08 +02:00
parent 72b37c56fd
commit 5ab6617b5d
5 changed files with 21 additions and 19 deletions

View File

@ -1,7 +1 @@
if [ -f __path__ ]; then
if [ -n __lines__ ]; then
sudo tail -n __lines__ __path__
else
sudo cat __path__
fi
fi
[ -f __path__ ] && sudo cat __path__

View File

@ -0,0 +1 @@
sudo tail -n __lines__ __path__