mirror of
https://github.com/thiagoralves/OpenPLC_Editor.git
synced 2025-05-09 00:21:53 +08:00
21 lines
472 B
Bash
Executable File
21 lines
472 B
Bash
Executable File
#!/bin/bash
|
|
if [ -d "./new_editor" ]
|
|
then
|
|
rm -Rf new_editor
|
|
fi
|
|
if [ -d "./OpenPLC_Editor" ]
|
|
then
|
|
rm -Rf OpenPLC_Editor
|
|
fi
|
|
git clone https://github.com/thiagoralves/OpenPLC_Editor
|
|
if [ -d "./OpenPLC_Editor/editor" ]
|
|
then
|
|
mv "./OpenPLC_Editor/editor" ./new_editor
|
|
mv "./OpenPLC_Editor/matiec/lib" ./new_lib
|
|
cp ./OpenPLC_Editor/revision ./
|
|
rm -Rf OpenPLC_Editor
|
|
echo "Update applied successfully"
|
|
else
|
|
echo "Error cloning from repository!"
|
|
fi
|