diff --git a/FE2TY-ZENITY b/FE2TY-ZENITY index 18d34b9..1801e73 100755 --- a/FE2TY-ZENITY +++ b/FE2TY-ZENITY @@ -35,6 +35,24 @@ main() { esac } +clonesection() { + cd "$HOME" || exit 1 + mkdir -v "$HOME"/87F9W3845GFG5R894OSEG || true + pushd "$HOME"/87F9W3845GFG5R894OSEG || exit 1 + git clone https://github.com/Icycoide/TyrianOS || limsg.quit s 2 e "Failed to clone" + pushd TyrianOS/ || exit + limsg s 2 i "Installing skeleton to all users..." + echo "40" + echo "# Installing skeleton to all users" + cp -vr system_files/etc/skel/* /var/home/*/ + limsg s 2 i "Installing skeleton to all users (hidden)..." + echo "60" + echo "# Installing hidden skeleton to all users" + cp -vr system_files/etc/skel/.* /var/home/*/ + popd || exit 1 + popd || exit 1 +} + ty.install() { zenity --question --text="By pressing enter, you agree that this tool is not considered an official tool to install TyrianOS and should only be used as a last resort from an existing Fedora installation. Therefore, the creators of this script have absolutely no responsibility in the case of something happening, as it is very experimental. Do you really wish to proceed?" || exit 1 ( @@ -45,21 +63,7 @@ ty.install() { limsg s 2 i "Cloning to temporary directory..." echo "20" echo "# Cloning TyrianOS source to temporary directory" - cd "$HOME" || exit 1 - mkdir -v "$HOME"/87F9W3845GFG5R894OSEG || true - pushd "$HOME"/87F9W3845GFG5R894OSEG || exit 1 - git clone https://github.com/Icycoide/TyrianOS || limsg.quit s 2 e "Failed to clone" - pushd TyrianOS/ || exit - limsg s 2 i "Installing skeleton to all users..." - echo "40" - echo "# Installing skeleton to all users" - cp -vr system_files/etc/skel/* /var/home/*/ - limsg s 2 i "Installing skeleton to all users (hidden)..." - echo "60" - echo "# Installing hidden skeleton to all users" - cp -vr system_files/etc/skel/.* /var/home/*/ - popd || exit 1 - popd || exit 1 + clonesection limsg s 2 i "Removing temporary directory again..." echo "75" echo "# Removing temporary directory"