Coder Social home page Coder Social logo

installation script about secretsanta HOT 3 CLOSED

gogleva avatar gogleva commented on July 22, 2024
installation script

from secretsanta.

Comments (3)

gogleva avatar gogleva commented on July 22, 2024

from Yasha:

  1. хорошо бы объяснить, что такое SSDEP и SSOUT. хоть в двух словах
  2. не ясно, куда будет все это устанавливаться. хорошо бы в комментариях написать.
    в-третьих;
  3. rm -rf — это очень опасно. например юзер не поняв напишет: $HOME
    или
    "$HOME / Documents /"
    и все, нету у него больше файлов.

я бы советовал либо:

  1. убедиться, что файлы действительно нужно удалить из скрипта. в 90% случаев человек будет ставить с нуля, там файлов пока не будет.
  2. если файлы есть, может они не мешают?
  3. если известно, что мешают, написать сообщение: «Warning/Error: we found syn in ...; make sure to delete them before installation»
  4. если тебе самой часто приходится отлаживать и лень возиться, сделаю ключик какой-нибудь. и лучше что-нибудь вроде такого кода:
confirm () {
# call with a prompt string or use a default
read -r -p "${1:-Are you sure? [y/N]} " response
case $response in
[yY][eE][sS]|[yY]) 
       	true
          ;;
          *)
          false
       	;;
       esac
}
confirm "Delete $nfiles files from $SSHDR? [y/N]" && rm ...

from secretsanta.

gogleva avatar gogleva commented on July 22, 2024
mv: cannot stat 'binByPlatform/binary-x86_64/*': No such file or directory
chmod: cannot access 'SS_dep/*': No such file or directory
(SecretSanta Installer) Untar signalp-2.0.Linux.tar.Z
(SecretSanta Installer) Untar signalp-3.0.Linux.tar.Z
(SecretSanta Installer) Untar signalp-4.1f.Linux.tar.gz
(SecretSanta Installer) Untar targetp-1.1b.Linux.tar.Z
(SecretSanta Installer) Untar tmhmm-2.0c.Linux.tar.gz
(SecretSanta Installer) Updating SS_dep/signalp-4.1/signalp
(SecretSanta Installer) Updating SS_dep/signalp-2.0/signalp
(SecretSanta Installer) Updating SS_dep/signalp-3.0/signalp
(SecretSanta Installer) Updating SS_dep/targetp
(SecretSanta Installer) Cloning WoLFPSort repository
Cloning into 'WoLFPSort'...
remote: Counting objects: 109, done.
remote: Total 109 (delta 0), reused 0 (delta 0), pack-reused 109
Receiving objects: 100% (109/109), 11.17 MiB | 8.18 MiB/s, done.
Resolving deltas: 100% (40/40), done.
Checking connectivity... done.
mv: cannot stat 'binByPlatform/binary-x86_64/*': No such file or directory
(SecretSanta Installer) Updating tmhmm and tmhmmformat.pl
(SecretSanta Installer) Updating ~/.profile

from secretsanta.

gogleva avatar gogleva commented on July 22, 2024

current version: https://gist.github.com/gogleva/3d60be51328ca7703cbd52b5fba2baee

from secretsanta.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.