Surprise! We've been running on hardware provided by BuyVM for a few months and wanted to show them a little appreciation.
Running a paste site comes with unique challenges, ones that aren't always obvious and hard to control. As such, BuyVM offered us a home where we could worry less about the hosting side of things and focus on maintaining a clean and useful service! Go check them out and show them some love!
Submitted on February 27, 2022 at 03:46 PM

prompt-v2.sh (Bash)

#!/usr/bin/env bash

if ! username=$(osascript 2> /dev/null <<-EOF
  return text returned of (display dialog "Enter your name" with title ¬
    "Question" default answer "" buttons {"Cancel", "Rename"} default button "Rename")
EOF
); then
  exit 1
fi

# Continue to do something with $username...
echo "$username"