I found an Internet script for copying deb when installing from the store on an Internet:
#! / bin / sh
who = 'whoami'
if [$ who! = "root"]
then echo "Root rights required"
while [! -f /var/cache/apt/archives/*.*]
cp -f /var/cache/apt/archives/*.* / home / user / MyDocs / Downloads / store /
the folder / home / user / MyDocs / Downloads / store / is created.
Faced such problems:
- when trying to apply chmod + x to a script in the MyDocs folder, aegis swears (although I do it under root)
- when moving to / usr / sbin / chmod it works fine, but on startup it displays:
line 14: syntax error: unexpected end of file (expecting "fi")
where did it find "line 14" and "fi" if there are only 11 lines, respectively, the end of the file in line 12?
I wrote a script in TxPad, then edited in nano, I suspect that TxPad is creating the wrong files, but when creating via Notepad ++ from the computer itвЂ™s the same.
Is it possible to run a script from MyDocs?