melawy-plymouth-theme-lera-.../dev/make.sh

20 lines
337 B
Bash
Raw Normal View History

2023-04-17 11:56:17 +05:00
#!/bin/bash
THEME_NAME="melawy-lera-sugar"
if [[ -n "$THEME_NAME" ]]; then
echo "Non empty"
else
echo "Theme name is empty. Exit"
exit
fi
cp -f script.js ../$THEME_NAME/script.script
sed -i 's/function/fun/g' ../$THEME_NAME/script.script
if [[ "$?" == 0 ]]; then
echo "Make successed"
else
echo "Make failed?"
fi