Kasianov Nikolai Alekseevich
1 year ago
4 changed files with 19 additions and 5 deletions
@ -1,9 +1,17 @@ |
|||||||
program=clido |
program=clido |
||||||
target=/usr/local/bin |
target=/usr/local/bin |
||||||
|
todo_target=/usr/local/share/clido |
||||||
|
|
||||||
|
|
||||||
if [ -f "$program" ]; then |
if [ -f "$program" ]; then |
||||||
echo "Moving $program to $target ..." |
echo "Creating $todo_target ..." |
||||||
mv $program $target && echo "Successfully installed!" |
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 |
else |
||||||
echo "$program does not exist!" |
echo "$program does not exist!" |
||||||
fi |
fi |
Loading…
Reference in new issue