Browse Source

install.sh

master
pvincent 1 year ago
parent
commit
ec77576d0a
  1. 16
      src/install.sh
  2. 1
      src/main

16
src/install.sh

@ -0,0 +1,16 @@
#!/bin/bash
echo "install on: $HOSTNAME"
echo ----------------------
[ "$(id -u)" -eq 0 ] && echo 'normal user required: ie, not <root>!' && exit 1
if [[ ! $PWD == '/opt/debian-gnome' ]]; then
# download and fullfill /opt/debian-bash, then run it from folder
if [[ ! -L /opt/debian-gnome ]]; then
sudo rm -rf /opt/debian-gnome
sudo git clone --depth=1 https://git.artcode.re/pvincent/debian-gnome /opt/debian-gnome
fi
/opt/debian-gnome/src/main
fi

1
src/main

@ -188,7 +188,6 @@ echo "================"
if [[ ! -d /usr/share/goldendict/dicts ]]; then
sudo git clone --depth 1 https://git.artcode.re/non-free/dicts.git /usr/share/goldendict/dicts
fi
if [[ ! -f $HOME/.config/goldendict/config ]] || ! grep -q "path.*/usr/share/goldendict/dicts" $HOME/.config/goldendict/config; then
mkdir -p "$HOME/.config/goldendict/"
cp "$BASEDIR/lib/goldendict/config" "$HOME/.config/goldendict/"

Loading…
Cancel
Save