Skip to content

Commit

Permalink
Merge branch 'fix-ci' into 'bash'
Browse files Browse the repository at this point in the history
Fix ci

See merge request tuxecure/crackle-apt/crackle!4
  • Loading branch information
Fuseteam committed Aug 8, 2024
2 parents d06e239 + 906dc0e commit ff8752b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
10 changes: 6 additions & 4 deletions crackle
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ SCRP_DIR=$(dirname "${BASH_SOURCE[0]}")
SUDO_CONFIG=/root/.config
SUDO_BIN=/root/.local/bin
SUDO_STATE=/root/.local/state

set -x
# invalidate cached credentials to ensure sudo asks for the password the first time it is used by crackle
sudo -k
if [[ -z "$CI" ]]; then sudo -k; fi

# check if the files differ, if yes overwrite the old version
upd() {
Expand Down Expand Up @@ -216,8 +216,10 @@ APT_CACHE="apt-cache -o Dir::Cache=$APTCACHE -o Dir::State=$APTSTATE -o Dir::Etc
say "checking connectivity"
wget -q --spider https://ubports.com || err "no internet connection, please run crackle update later to fetch the latest package lists";

if check_cmd curl; then say "Updating Cracklebin"; fi
if check_cmd curl; then curl --disable --progress-bar -L ${CRACKLEBIN} | tar zx --strip-components=1 -C $PKG_PREFIX/lib/crackle; fi
if [[ -z "$CI" ]]; then
if check_cmd curl; then say "Updating Cracklebin"; fi
if check_cmd curl; then curl --disable --progress-bar -L ${CRACKLEBIN} | tar zx --strip-components=1 -C $PKG_PREFIX/lib/crackle; fi
fi

if check_cmd curl; then say "Updating repos"; fi
if check_cmd curl; then curl --disable --progress-bar -L ${CRACKLEBIN} | tar zx --directory=$APTCONFIG/preferences.d --wildcards */etc/preferences.d/* --strip-components=3; fi
Expand Down
2 changes: 1 addition & 1 deletion lib/clickfunc
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ function prep_build () {
}

mod_desktop(){
desktopfile=$(find ${INSTALL_DIR} -maxdepth 1 -name *.desktop)
desktopfile=$(find ${INSTALL_DIR} -maxdepth 1 -name *${PKG}*.desktop)
sed -i "/Icon=/d" $desktopfile
sed -i "/Exec=/d" $desktopfile
sed -i "/^Categories=/i Exec=${PKG}.sh" $desktopfile;
Expand Down

0 comments on commit ff8752b

Please sign in to comment.