Skip to content

Commit 014b9a5

Browse files
committed
pacaptへの依存をしないように変更
1 parent 7c593a0 commit 014b9a5

File tree

1 file changed

+2
-13
lines changed

1 file changed

+2
-13
lines changed

usr/bin/serene-startdash

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -221,17 +221,6 @@ installed_list () { ${pacman} -Q | awk '{print $2}'; }
221221

222222

223223

224-
#-- pacapt --#
225-
if [[ ! -f $pacman ]]; then
226-
error 600 100 "$pacmanが存在しません。"
227-
exit 1
228-
fi
229-
if [[ ! -x $pacman ]]; then
230-
chmod 755 $pacman
231-
fi
232-
233-
234-
235224
#-- デバッグモード --#
236225
set +eu
237226
if [[ -z $debug_mode ]]; then
@@ -243,8 +232,8 @@ set -eu
243232

244233
#-- クリーンアップ --#
245234
function cleanup () {
246-
$pacman -Scc --noconfirm | loading 600 100 "クリーンアップを実行中です。"
247-
$pacman -Rsn --noconfirm | loading 600 100 "クリーンアップを実行中です"
235+
apt-get --yes clean | loading 600 100 "クリーンアップを実行中です。"
236+
apt-get --yes autoremove | loading 600 100 "クリーンアップを実行中です"
248237
}
249238

250239

0 commit comments

Comments
 (0)