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

20 lines
337 B
Bash
Executable File

#!/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