Kasianov Nikolai Alekseevich
1 year ago
4 changed files with 19 additions and 5 deletions
@ -1,9 +1,17 @@
|
||||
program=clido |
||||
target=/usr/local/bin |
||||
todo_target=/usr/local/share/clido |
||||
|
||||
|
||||
if [ -f "$program" ]; then |
||||
echo "Moving $program to $target ..." |
||||
mv $program $target && echo "Successfully installed!" |
||||
echo "Creating $todo_target ..." |
||||
mkdir -p $todo_target && \ |
||||
touch $todo_target/TODOS.bin && \ |
||||
echo "Setting rights ..." && \ |
||||
chmod -R a+rw $todo_target && \ |
||||
echo "Moving $program to $target ..." && \ |
||||
mv $program $target && \ |
||||
echo "Successfully installed!" |
||||
else |
||||
echo "$program does not exist!" |
||||
fi |
Loading…
Reference in new issue