executable_guix-update.sh 335 B

12345678910111213
  1. #!/bin/sh
  2. GUIX_LATEST_USER=/home/natsu/.config/guix/latest
  3. GUIX_LATEST_ROOT=/root/.config/guix/latest
  4. # Echo evalueated commands
  5. set -x
  6. # Link to root guix from user guix
  7. unlink $GUIX_LATEST_ROOT\
  8. && ln -s "$(readlink $GUIX_LATEST_USER)" $GUIX_LATEST_ROOT
  9. test "$(readlink $GUIX_LATEST_USER)" == "$(readlink $GUIX_LATEST_ROOT)"