re-make.sh 500 B

1234567891011121314151617
  1. #!/bin/bash
  2. set -e # Exit immediately if a command exits with a non-zero status
  3. #set -x # Print each command before execution
  4. gum style \
  5. --foreground 255 --border-foreground 212 --border double \
  6. --align center --width 50 --margin "1 2" --padding "2 4" \
  7. 'Make suckless st' 'this script will remove config.h'
  8. gum log --structured --level debug "Creating file..." name file.txt
  9. # Remove config.h
  10. gum confirm "Remove config.h" && rm config.h || echo "File NOT removed"
  11. make clean
  12. make install