jan/.github/scripts/rename-uninstaller-beta.sh
hiento09 9045eeb1d6
Feat Jan beta version (#3835)
* feat: add beta version
---------

Co-authored-by: Hien To <tominhhien97@gmail.com>
2024-10-23 10:38:40 +07:00

16 lines
332 B
Bash

#!/bin/bash
# File path to be modified
FILE_PATH="electron/scripts/uninstaller.nsh"
# Check if the file exists
if [ ! -f "$FILE_PATH" ]; then
echo "File does not exist: $FILE_PATH"
exit 1
fi
# Perform the replacements
sed -i -e "s#jan#jan-beta#g" "$FILE_PATH"
# Notify completion
echo "File has been updated: $FILE_PATH"