Minor changes
This commit is contained in:
parent
4b041ff1d6
commit
1e88190670
2 changed files with 6 additions and 5 deletions
|
|
@ -129,6 +129,7 @@ add_launcher() {
|
|||
ICON_URL=https://lab.c95.org/fr4nz/helium-helper/raw/branch/main/assets/icon/helium.png
|
||||
LOCAL_VERSION=$($INSTALL_PATH/$APP_NAME.AppImage --version | awk '{print $2}')
|
||||
wget -P $TMP $LAUNCHER_URL -q --show-progress
|
||||
|
||||
wget -P $TMP $ICON_URL -q --show-progress
|
||||
sed -i "s|%APP_LOCATION%|$INSTALL_PATH/$APP_NAME.AppImage|" $TMP/helium.desktop.template
|
||||
sed -i "s|%ICON_LOCATION%|$CONFIG_PATH/icon/helium.png|" $TMP/helium.desktop.template
|
||||
|
|
@ -159,10 +160,10 @@ add_launcher() {
|
|||
}
|
||||
|
||||
### ALIAS
|
||||
add_alias() {
|
||||
add_alias() { ### WORKS BUT NEEDS WORK
|
||||
if [ -f "$HOME/.zshrc" ] ; then
|
||||
echo "alias $ALIAS=\"$SCRIPT_PATH/$SCRIPT_FILE_NAME\"" >>$HOME/.zshrc
|
||||
echo -e "\n ${GRN}$ALIAS added to${CRS} $HOME/.zshrc"
|
||||
echo "alias $ALIAS=\"$SCRIPT_PATH/$SCRIPT_FILE_NAME\"" >> $HOME/.zshrc
|
||||
echo -e "\n ${LCY}$ALIAS ${GRN}added to${CRS} $HOME/.zshrc"
|
||||
|
||||
else
|
||||
echo -e "\n ${RED}No .bashrc like file found!${CRS}"
|
||||
|
|
@ -294,11 +295,12 @@ script_version() {
|
|||
|
||||
### UPDATE SCRIPT
|
||||
remote_script_check() {
|
||||
REMOTE_SCRIPT_URL=https://lab.c95.org/fr4nz/helium-helper/raw/branch/main/helium_helper.sh
|
||||
REMOTE_SCRIPT_URL=https://lab.c95.org/fr4nz/helium-helper/raw/branch/main/$SCRIPT_FILE_NAME
|
||||
mkdir -p $TMP
|
||||
wget -P $TMP $REMOTE_SCRIPT_URL -q
|
||||
chmod +x $TMP/$SCRIPT_FILE_NAME
|
||||
}
|
||||
|
||||
update_script() {
|
||||
remote_script_check
|
||||
|
||||
|
|
|
|||
1
test.sh
1
test.sh
|
|
@ -1 +0,0 @@
|
|||
#!/bin/bash
|
||||
Loading…
Add table
Add a link
Reference in a new issue