Git Get for github it downloads github repos auto with bash
Page 1 of 1
Git Get for github it downloads github repos auto with bash
- Code:
#!/bin/bash
# (c) J~Net 2020
#
# jnet.sytes.net
#
# Example to run make executable then type:
# ./run.sh
#
#
# https://jnet.forumotion.com/t1714-git-get-for-github-it-downloads-github-repos-auto-with-bash#2656
server="server" # Server Name
username="username" # administrator
password="password" # password
share="NETWORK" # Share Name
filename="GITHUB.txt" # File Name
path="/home/$USER/Documents/Scripts/BASH/Get_Git/" # Path to copy filename to.
installpath="/home/$USER/Documents/Scripts/"
fallback="https://raw.githubusercontent.com/jamieduk/git_get/main/GITHUB.txt"
#
echo "Welcome To Git Get By J~Net 2020 jnet.sytes.net"
echo "Copying File Over Ready For DL"
echo ""
# smbclient '//windowsserver/c$' -c 'lcd /tmp; cd Directory; get file.txt' -U administrator%password
smbclient "//$server/$share" -c "lcd $path; cd Directory; get $filename" -U $username%$password
#
#cd $installpath
if [ ! -e "$filename" ]; then
echo "File does not exist"
echo "FallBack Mode Activated!"
wget $fallback
else
echo "File Ready!"
fi
while IFS="" read -r p || [ -n "$p" ]
do
$p # git clone
done < $filename
#
echo "All Commands Have Been Ran!"
#
#
# rm $filename
Last edited by jamied_uk on 3rd October 2020, 21:28; edited 3 times in total
Re: Git Get for github it downloads github repos auto with bash
Or use git / Github
- Code:
git clone https://github.com/jamieduk/git_get.git
Re: Git Get for github it downloads github repos auto with bash
Example GITHUB.txt file!
# Examples!
git clone https://github.com/H1R0GH057/Anonymous.git
git clone https://github.com/alpinelinux/alpine-chroot-install.git
# https://github.com/jamieduk?tab=repositories
# Examples!
git clone https://github.com/H1R0GH057/Anonymous.git
git clone https://github.com/alpinelinux/alpine-chroot-install.git
# https://github.com/jamieduk?tab=repositories
Similar topics
» Linux BASH Script Running Commands and Functions From Bash Script and saving to varables
» Message Netcat Bash Part 3 Auto Grabbing & Menu
» How to auto login linux kde and other environments
» Switching Shells from zsh crap to standard good old bash (/bin/bash)
» Bash Psychic Game For Linux Bash
» Message Netcat Bash Part 3 Auto Grabbing & Menu
» How to auto login linux kde and other environments
» Switching Shells from zsh crap to standard good old bash (/bin/bash)
» Bash Psychic Game For Linux Bash
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum