Compare commits
No commits in common. "b32cf97e95ba1b897379ae65515fad5ba51a6fd1" and "3df3362f2882d281b564165c7b2125b2516fbbba" have entirely different histories.
b32cf97e95
...
3df3362f28
34
copy.sh
34
copy.sh
|
@ -6,21 +6,15 @@ SCRIPT_DIR="$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
|
||||||
FAKE_HOME="$SCRIPT_DIR/fake_home"
|
FAKE_HOME="$SCRIPT_DIR/fake_home"
|
||||||
export f="$FAKE_HOME"
|
export f="$FAKE_HOME"
|
||||||
|
|
||||||
function require {
|
if ! command -v wget &> /dev/null; then
|
||||||
local success=true
|
echo "wget must be installed!"
|
||||||
for comm in "$@"; do
|
exit 1
|
||||||
if ! command -v "$comm" &> /dev/null; then
|
fi
|
||||||
echo "$comm must be installed!"
|
|
||||||
success=false
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
if ! $success; then
|
|
||||||
echo "Missing copy.sh dependencies! Exiting!"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
require git wget curl find jq gron
|
if ! command -v curl &> /dev/null; then
|
||||||
|
echo "curl must be installed!"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
mkdir -p "$HOME/.tmp" || exit 1
|
mkdir -p "$HOME/.tmp" || exit 1
|
||||||
|
|
||||||
|
@ -130,18 +124,6 @@ if ! test -f "$HOME/.local/share/fonts/FiraCodeNerdFontMono-Medium.ttf"; then
|
||||||
fc-cache -f -v
|
fc-cache -f -v
|
||||||
fi
|
fi
|
||||||
|
|
||||||
curdir="$(pwd)"
|
|
||||||
cd $SCRIPT_DIR || exit 1
|
|
||||||
if test -d git-mirror-machine; then
|
|
||||||
cd git-mirror-machine
|
|
||||||
git pull
|
|
||||||
else
|
|
||||||
git clone 'https://git.sagev.space/sage/git-mirror-machine.git'
|
|
||||||
cd git-mirror-machine
|
|
||||||
fi
|
|
||||||
./mirror.sh
|
|
||||||
cd "$curdir" || exit 1
|
|
||||||
|
|
||||||
if ! command -v fzf &> /dev/null; then
|
if ! command -v fzf &> /dev/null; then
|
||||||
echo "You may wish to install fzf for sofi and other search"
|
echo "You may wish to install fzf for sofi and other search"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue