Snippets

ZombyMediaIC Custom atom installer MAIN

Updated by ZombyMediaIC

File ci_atom.sh Modified

  • Ignore whitespace
  • Hide word diff
 SCRIPTPATH="$( cd "$(dirname "$0")" ; pwd -P )"
 
 function confInstall {
-  cd $SCRIPTPATH/assets/settings
+
+  MY_PATH=`dirname "$0"`
+  MY_PATH=`( cd "$MY_PATH" && pwd )`
+
+  cd $MY_PATH/installer/assets/settings
 
   ./ci_settings.sh
 
Updated by ZombyMediaIC

File ci_atom.sh Modified

  • Ignore whitespace
  • Hide word diff
 
 sleep 1
 
-
+clear
 echo -e  "\e[33mStarting installer... \e[39m"
 sleep 1
 
     echo -e  "\e[33mInstallation is done \e[39m"
     rm atom-amd64.deb
     echo " "
+    clear
     echo -e  "\e[33mStarting installation of plugins for atom \e[39m"
     sleep 2
 
Updated by ZombyMediaIC

File ci_atom.sh Modified

  • Ignore whitespace
  • Hide word diff
 #!/bin/bash
+cd ../assets/
+date=($(jq -r '.license' assets/env-online.json))
 
-date="10.12.2018"
+cd ../installer
 
 SCRIPTPATH="$( cd "$(dirname "$0")" ; pwd -P )"
 
     echo -e "\e[33mChecking for curl installation \e[39m"
     dpkg -s curl 2>/dev/null >/dev/null || sudo apt-get -y install curl
     echo " "
+
+    sudo apt-get install -y gconf2 gconf-service python gconf-service-backend libgconf-2-4 python2.7 libpython-stdlib python2 gconf2-common libpython2-stdlib
+    sudo apt --fix-broken install
 }
 
 function updateScript {
-    git fetch
-
-    sleep 0.5
-
-    UPSTREAM=${1:-'@{u}'}
-    LOCAL=$(git rev-parse @)
-    REMOTE=$(git rev-parse "$UPSTREAM")
-    BASE=$(git merge-base @ "$UPSTREAM")
-
-    if [ $LOCAL = $REMOTE ]; then
-        echo -e "\e[92mScript is up to date"
-    elif [ $LOCAL = $BASE ]; then
-        echo "New version of script is ready to download"
-        echo "Starting download"
-        git pull
-        sleep 4
-        echo -e "\e[92mDownload complete \e[39m"
-        echo "We are restarting the script now..."
-        sleep 3
-        clear
-        ./ci_atom.sh
-        exit
-    else
-        echo -e "\e[91mERROR: {649} \e[33mThe repository has too many unshared changes \e[39m"
-    fi
-
+  echo -e "\e[92mScript is up to date"
 }
 
 clear
 echo "The script need curl and git to be installed!"
 echo "If this is not the case we will install git and curl for you..."
-echo -e "\e[92mLicense is valid until $date\e[39m"
+echo -e "\e[92mLicense is valid until ${date[0]} \e[39m"
 
 install_git_curl
 sleep 1
 else
     sleep 1
     echo -e  "\e[31mInstallation Failed {ERROR: No Message available} \e[39m"
-fi
+fi
Updated by ZombyMediaIC

File ci_atom.sh Modified

  • Ignore whitespace
  • Hide word diff
 #!/bin/bash
 
-date="30.11.2018"
+date="10.12.2018"
 
 SCRIPTPATH="$( cd "$(dirname "$0")" ; pwd -P )"
 
 else
     sleep 1
     echo -e  "\e[31mInstallation Failed {ERROR: No Message available} \e[39m"
-fi
+fi
Updated by ZombyMediaIC

File Compile command.sh Modified

  • Ignore whitespace
  • Hide word diff
-shc -e 30/09/2018 -m "This version is not longer supported please download the newest version or use git pull" -r -T -f ci_atom.sh && rm ci_atom.sh && mv ci_atom.sh.x ci_atom.sh && rm ci_atom.sh.x.c
+shc -e 30/09/2018 -m "This version is not longer supported please download the newest version or use git pull" -r -f ci_atom.sh && rm ci_atom.sh && mv ci_atom.sh.x ci_atom.sh && rm ci_atom.sh.x.c

File ci_atom.sh Modified

  • Ignore whitespace
  • Hide word diff
 #!/bin/bash
 
-date="14.10.2018"
+date="30.11.2018"
 
 SCRIPTPATH="$( cd "$(dirname "$0")" ; pwd -P )"
 
   unzip $zipname -d ./
 
   rm $zipname
-  rm -rf $url
+  sudo rm -rf $url
   sleep 1
   clear
 fi
 
 
 
-##MACHINE_TYPE=`uname -m`
-##if [ ${MACHINE_TYPE} == 'x86_64' ]; then
-##    echo -e  "\e[33mAdding atom to package list \e[39m"
-##    curl -L https://packagecloud.io/AtomEditor/atom/gpgkey | sudo apt-key add -
-##
-##    echo -e  "\e[33mLink installer package \e[39m"
-##    sudo sh -c 'echo "deb [arch=amd64] https://packagecloud.io/AtomEditor/atom/any/ any main" > /etc/apt/sources.list.d/atom.list'
-##
-##    echo -e "\e[33mUpdating the package list \e[39m"
-##    sudo apt-get update
-##    sleep 1
-##
-##    echo ""
-##    echo -e  "\e[33mStarting installation of atom editor... \e[39m"
-##    sudo apt-get install -y atom
-##else
-##    sudo add-apt-repository ppa:webupd8team/atom
-##    sudo apt-get update
-##    sudo apt-get install -y atom
-##fi
-
-echo "Enter Mode | P - Packages || A - Atom Editor:"
+echo "Enter Mode | P - Packages || A - ALL:"
 read pmode
 
 if [[ "$pmode" != "P" ]]; then
 if which atom >/dev/null; then
     sleep 1
     echo -e  "\e[33mInstallation is done \e[39m"
+    rm atom-amd64.deb
     echo " "
     echo -e  "\e[33mStarting installation of plugins for atom \e[39m"
     sleep 2
 
     cd ~/.atom
 
-    rm -rf ~/.atom/packages
+    sudo rm -rf ~/.atom/packages
 
     echo -e  "\e[33mCreate packages folder \e[39m"
     mkdir packages
 
 if [ "$userinput" == "master" ]; then
 echo -e "\e[33mStarting Installation of the Master package..."
-rm -rf ~/.atom/packages/*
+sudo rm -rf ~/.atom/packages/*
 getMaster_bundle
 fi
 
 if [ "$userinput" == "large" ]; then
 echo -e "\e[33mStarting Installation of the Large package..."
-rm -rf ~/.atom/packages/*
+sudo rm -rf ~/.atom/packages/*
 getLarge_bundle
 fi
 
 if [ "$userinput" == "medium" ]; then
 echo -e "\e[33mStarting Installation of the Medium package..."
-rm -rf ~/.atom/packages/*
+sudo rm -rf ~/.atom/packages/*
 getMedium_bundle
 fi
 
 if [ "$userinput" == "small" ]; then
-rm -rf ~/.atom/packages/*
+sudo rm -rf ~/.atom/packages/*
 echo -e "\e[33mStarting Installation of the Small package..."
 getSmall_bundle
 fi
 
 if [ "$userinput" == "light" ]; then
-rm -rf ~/.atom/packages/*
+sudo rm -rf ~/.atom/packages/*
 echo -e "\e[33mStarting Installation of the Light package..."
 getLight_bundle
 fi
 
 if [ "$userinput" == "custom" ]; then
-rm -rf ~/.atom/packages/*
+sudo rm -rf ~/.atom/packages/*
 echo -e "\e[33mStarting Installation of the Light package..."
 echo ""
 
  1. 1
  2. 2
  3. 3
  4. 4
HTTPS SSH

You can clone a snippet to your computer for local editing. Learn more.