mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-02 14:36:17 +00:00
fix read file
This commit is contained in:
@ -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__
|
||||
|
1
app/SSH/OS/scripts/tail.sh
Normal file
1
app/SSH/OS/scripts/tail.sh
Normal file
@ -0,0 +1 @@
|
||||
sudo tail -n __lines__ __path__
|
Reference in New Issue
Block a user